Revision: 5919
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5919&view=rev
Author:   owes
Date:     2011-10-09 13:59:33 +0000 (Sun, 09 Oct 2011)
Log Message:
-----------
Start and try to fix eagle USB.

Modified Paths:
--------------
    ipcop/trunk/src/rc.d/rc.eagleusbadsl
    ipcop/trunk/updates/2.0.1/ROOTFILES.i486-2.0.1

Modified: ipcop/trunk/src/rc.d/rc.eagleusbadsl
===================================================================
--- ipcop/trunk/src/rc.d/rc.eagleusbadsl        2011-10-09 09:16:57 UTC (rev 
5918)
+++ ipcop/trunk/src/rc.d/rc.eagleusbadsl        2011-10-09 13:59:33 UTC (rev 
5919)
@@ -1,33 +1,61 @@
 #!/bin/bash
 #
+# This file is part of the IPCop Firewall.
+#
+# IPCop is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# IPCop is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with IPCop.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Copyright (c) 2003-2011 The IPCop Team
+#
 # $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" -eq "on" ] ; then
         /usr/bin/logger -t red "EAGLE-USB: $*"
     fi
-    /bin/echo "$*"
+    echo "$*"
 }
+
+# TODO: is this stell needed?
 IFACE="eth3"
+# TODO: is this stell needed?
 DSPstr="Please send DSP (eaglectrl -d)"
 
+
+# TODO: everything below this line needs verification
+# eagle-usb module replaced by (kernel standard) ueagle-atm
+# handling fully different, more automated due to udev (?)
+
+
 # See how we were called.
 case "$1" in
 start)
-    if [ ! -f "/proc/bus/usb/devices" ]; then
+    if [ ! -f "/sys/bus/usb/devices/usb1" ]; then
         msg "No USB enabled"
         exit 1
     fi
-    
+
     if [ "$LINE" != "WO" -a "$LINE" != "FR" -a "$LINE" != "IT" -a "$LINE" != 
"ES" ]; then
         LINE='WO' # default CMV value
     fi
-    
+
     /bin/ln -f -s /etc/eagle-usb/CMVep$LINE.txt /etc/eagle-usb/CMVep.txt
     /bin/ln -f -s /etc/eagle-usb/CMVeiWO.txt /etc/eagle-usb/CMVei.txt
 

Modified: ipcop/trunk/updates/2.0.1/ROOTFILES.i486-2.0.1
===================================================================
--- ipcop/trunk/updates/2.0.1/ROOTFILES.i486-2.0.1      2011-10-09 09:16:57 UTC 
(rev 5918)
+++ ipcop/trunk/updates/2.0.1/ROOTFILES.i486-2.0.1      2011-10-09 13:59:33 UTC 
(rev 5919)
@@ -1,4 +1,5 @@
 ## please place IPCop files first, then packages sorted by alphabetical order
+/etc/rc.d/rc.eagleusbadsl
 /home/httpd/cgi-bin/email.cgi
 /home/httpd/cgi-bin/index.cgi
 /home/httpd/cgi-bin/logsummary.cgi

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to