]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/rc.d/rc.3cp4218usbadsl
3 # $Id: rc.3cp4218usbadsl,v 1.4.2.3 2005/07/07 20:11:57 franck78 Exp $
6 eval $
(/usr
/local
/bin
/readhash CONFIG_ROOT
/ppp
/settings
)
8 # Debugging. Comment it out to stop logging
11 if [ "z$DEBUG" != "z" ] ; then
12 /usr
/bin
/logger
-t red
"3Com AccessRunner USB: $*"
17 # See how we were called.
20 if [ -f "/proc/bus/usb/devices" ]; then
21 if ( ! /bin
/cat /proc
/bus
/usb
/devices |
/bin
/grep -q 'Vendor=0506 ProdID=F002' ); then
23 /usr
/sbin
/3cload
/usr
/sbin
/ez-usb.bin
29 # OPEN_MODE=: 5 = ANSI T1.413, 7 = ITU-T G.992.2 (G.LITE), 6 = ITU-T G.992.1 (G.DMT), 8 = multimode, 3 = other
36 /usr
/sbin
/3cload
2 /usr
/sbin
/3cinit.bin
/usr
/sbin
/3cmain.bin
$OPEN_MODE
43 /sbin
/modprobe
3cp4218 speed
=1 open
=$OPEN_MODE
46 msg
"3cp4218 loading failed"
64 msg
"driver cleanup and restarting USB Bus"
66 /sbin
/modprobe
-r 3cp4218
68 /usr
/local
/bin
/resetusb
71 echo "Usage: $0 {start|stop|cleanup}"