FreeBSD Bugzilla – Attachment 16960 Details for
Bug 30929
[usb] [patch] use usbd to initialize USB ADSL modem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 2.76 KB, created by
Tony Finch
on 2001-09-30 11:10:05 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Tony Finch
Created:
2001-09-30 11:10:05 UTC
Size:
2.76 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># etc/usbd.conf.patch ># etc/usb_adsl ># etc/ppp/adsl-ppp.conf ># etc/ppp/adsl-ppp.linkdown ># etc/ppp/adsl-ppp.linkup ># >echo x - etc/usbd.conf.patch >sed 's/^X//' >etc/usbd.conf.patch << 'END-of-etc/usbd.conf.patch' >XIndex: usbd.conf >X=================================================================== >XRCS file: /home/fanf/cvs/etc/usbd.conf,v >Xretrieving revision 1.1 >Xretrieving revision 1.3 >Xdiff -u -r1.1 -r1.3 >X--- usbd.conf 2001/09/01 13:59:14 1.1 >X+++ usbd.conf 2001/09/19 00:49:36 1.3 >X@@ -38,6 +38,15 @@ >X devname "ums[0-9]+" >X attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid" >X >X+# The entry below initializes the modem and starts the PPP over ATM >X+# implementation. >X+# >X+device "ALCATEL Speed Touch USB" >X+ vendor 0x06b9 >X+ product 0x4061 >X+ release 0x0000 >X+ attach "/etc/usb_adsl start" >X+ >X # The fallthrough entry: Nothing is specified, nothing is done. And it isn't >X # necessary at all :-). Just for pretty printing in debugging mode. >X # >END-of-etc/usbd.conf.patch >echo x - etc/usb_adsl >sed 's/^X//' >etc/usb_adsl << 'END-of-etc/usb_adsl' >X#!/bin/sh >X# >X# usb_adsl: initialize ALCATEL Speed Touch USB ADSL modem >X# >X# $Version: etc/usb_adsl,v 1.10 2001/09/30 07:28:12 fanf Exp $ >X >Xstartstop=$1 >Xshift >X >X# allow us to find modem driver programs >XPATH="/usr/local/sbin:/usr/local/bin:$PATH" >X >Xfirmware=/usr/local/libdata/mgmt.o >X >Xcase ${startstop} in >X[Ss][Tt][Aa][Rr][Tt]) >X { modem_run -f ${firmware} -v 1 -m >X ppp -ddial adsl nat >X } 2>&1 | logger -t usb_adsl -i & >X ;; >X[Ss][Tt][Oo][Pp]) >X killall ppp >X killall modem_run >X ;; >X*) >X echo "$0: usage: $0 <start|stop>" >X exit 1 >X ;; >Xesac >END-of-etc/usb_adsl >echo x - etc/ppp/adsl-ppp.conf >sed 's/^X//' >etc/ppp/adsl-ppp.conf << 'END-of-etc/ppp/adsl-ppp.conf' >X# ppp.conf fragment for Alcatel Speed Touch USB ADSL modem >X >Xnat: >X nat enable yes >X nat deny_incoming yes >X nat use_sockets yes >X enable iface-alias >X >Xadsl: >X set speed sync >X set device !"pppoa2m -vpi 0 -vci 38 -v 1" >X set authname USERNAME >X set authkey PASSWORD >END-of-etc/ppp/adsl-ppp.conf >echo x - etc/ppp/adsl-ppp.linkdown >sed 's/^X//' >etc/ppp/adsl-ppp.linkdown << 'END-of-etc/ppp/adsl-ppp.linkdown' >X# disable packet forwarding when PPP stops doing NAT >X >Xnat: >X shell sysctl -w net.inet.ip.forwarding=0 >END-of-etc/ppp/adsl-ppp.linkdown >echo x - etc/ppp/adsl-ppp.linkup >sed 's/^X//' >etc/ppp/adsl-ppp.linkup << 'END-of-etc/ppp/adsl-ppp.linkup' >X# enable packet forwarding when PPP is doing NAT >X >Xnat: >X shell sysctl -w net.inet.ip.forwarding=1 >END-of-etc/ppp/adsl-ppp.linkup >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 30929
: 16960