Revision: 5948 http://ipcop.svn.sourceforge.net/ipcop/?rev=5948&view=rev Author: owes Date: 2011-10-15 20:41:04 +0000 (Sat, 15 Oct 2011) Log Message: ----------- Fix test for USB. resetusb is long gone. Will need more to make working...
Modified Paths: -------------- ipcop/trunk/src/rc.d/rc.eciadsl Modified: ipcop/trunk/src/rc.d/rc.eciadsl =================================================================== --- ipcop/trunk/src/rc.d/rc.eciadsl 2011-10-15 20:36:33 UTC (rev 5947) +++ ipcop/trunk/src/rc.d/rc.eciadsl 2011-10-15 20:41:04 UTC (rev 5948) @@ -20,15 +20,17 @@ # $Id$ # +DEBUG="off" eval $(/usr/local/bin/readhash /var/ipcop/ppp/settings) -# Debugging. Comment it out to stop logging -DEBUG="yes" +# Debugging. Comment it out to use DEBUG from ppp settings +DEBUG="on" + msg() { - if [ "z$DEBUG" != "z" ] ; then + if [ "$DEBUG" = "on" ] ; then /usr/bin/logger -t red "ECI USB: $*" fi - /bin/echo "$*" + echo "$*" } # Function to wait for interface to become ready @@ -62,7 +64,7 @@ exit 1 fi - if [ ! -f "/proc/bus/usb/devices" ]; then + if [ ! -d "/sys/bus/usb/devices/usb1" ]; then msg "No USB enabled" exit 1 fi @@ -155,8 +157,8 @@ /sbin/modprobe -r tun ;; cleanup) - msg "driver cleanup and USB Bus reset" - /usr/local/bin/resetusb + msg "driver cleanup" + /bin/rm -f /var/ipcop/red/eciadsl-synch-done ;; *) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn