]>
git.ipfire.org Git - people/ms/ipfire-2.x.git/blob - src/rc.d/rc.fritzdsl
3 # $Id: rc.fritzdsl,v 1.2.2.10 2005/07/07 20:11:58 franck78 Exp $
6 # Debugging. Comment it out to stop logging
9 if [ "z$DEBUG" != "z" ] ; then
10 /usr
/bin
/logger
-t red
"FRITZDSL: $*"
15 if [ -e /var
/run
/need-depmod-
`uname -r` ]; then
16 echo "Update modules dependencies, may take time..."
18 /bin
/rm -f /var
/run
/need-depmod-
`uname -r`
21 # ID borrowed from Gentoo ebuild,
22 # should work with 'Card DSL','Card DSL v2.0', 'Card DSL SL', 'Card DSL USB','Card DSL SL USB'
23 # pcmcia card not compiled
24 if ( /bin
/grep "1244:2700" -q /proc
/pci
); then
26 elif ( /bin
/grep "1244:2900" -q /proc
/pci
); then
28 elif ( /bin
/grep "1131:5402" -q /proc
/pci
); then
30 elif ( /bin
/grep "Vendor=057c ProdID=2300" -q /proc
/bus
/usb
/devices
); then
32 elif ( /bin
/grep "Vendor=057c ProdID=3500" -q /proc
/bus
/usb
/devices
); then
38 # See how we were called.
41 if ( /bin
/grep -q "fcdsl" /proc
/modules
>/dev
/null
); then
44 if [ "$FCDSLMODEM" = 'none' ]; then
45 msg
"No supported modem found"
49 if [ ! -f "/lib/modules/`/bin/uname -r`/misc/fcdsl$FCDSLMODEM.o.gz" ]; then
50 msg
"Driver not uploaded"
53 # should use drdsl and drdsl.ini for parameters autoconfiguration or use pppsetup.cgi?
54 /usr
/sbin
/capiinit
-c "/etc/fcdsl/fcdsl$FCDSLMODEM.conf" start
62 if [ "$FCDSLMODEM" = 'none' ]; then
65 /sbin
/modprobe
-r fcdslusb fcdslslusb
66 /usr
/sbin
/capiinit
-c "/etc/fcdsl/fcdsl$FCDSLMODEM.conf" stop
67 if [ "$FCDSLMODEM" = 'slusb' -o "$FCDSLMODEM" = 'usb' ]; then
68 /usr
/local
/bin
/resetusb
72 /bin
/echo "Usage: $0 {start|stop|cleanup}"