]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/rc.d/rc.amedynusbadsl
3 # $Id: rc.amedynusbadsl,v 1.3.2.5 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
"Zyxel 630-11/Asus AAM6000UG: $*"
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 'ADSL USB modem' ); then
32 msg
"amedyn loading failed"
50 msg
"driver cleanup and USB Bus reset"
52 /sbin
/modprobe
-r amedyn
54 /usr
/local
/bin
/resetusb
57 /bin
/echo "Usage: $0 {start|stop|cleanup}"