]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/rc.d/rc.conexantpciadsl
3 # $Id: rc.conexantpciadsl,v 1.1.2.11 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
"CnxPCI ADSL: $*"
15 function wait_for_showtime
() {
16 msg
"waiting for sync"
18 while [ ! $count = 45 ]; do
20 if ( /usr
/sbin
/cnxadslstatus |
/bin
/grep -q -F 'Showtime.' ); then
29 # See how we were called.
33 # if the driver is not already loaded then
34 if ( /sbin
/lsmod |
/bin
/grep -q CnxADSL
); then
37 if ( ! /bin
/cat /proc
/pci |
/bin
/grep -q '14f1' ); then
38 msg
"no conexant modem"
41 /sbin
/modprobe CnxADSL
43 if [ $RETVAL -ne 0 ] ; then
44 msg
"error when loading, card present?"
46 if ( /bin
/cat /proc
/pci |
/bin
/grep -q '14f1:1611' ); then
48 /bin
/ln -f -s /etc
/Conexant
/CnxTgF.hex CONFIG_ROOT
/cnx_pci
/firmware.hex
50 if ( /bin
/cat /proc
/pci |
/bin
/grep -q '14f1:1622' ); then
52 /bin
/ln -f -s /etc
/Conexant
/CnxYkF.hex CONFIG_ROOT
/cnx_pci
/firmware.hex
54 msg
"don't know this model"
59 # Initialize the firmware and start training
60 /bin
/ln -f -s /etc
/Conexant
/cnxadsl.conf CONFIG_ROOT
/cnx_pci
/cnxadsl.conf
61 /etc
/Conexant
/cnxadslload CONFIG_ROOT
/cnx_pci
71 /bin
/killall cnxadslload
2>/dev
/null
72 /sbin
/modprobe
-r CnxADSL
75 echo "Usage: $0 {start|stop|cleanup}"