Revision: 6319
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6319&view=rev
Author:   owes
Date:     2012-02-05 17:30:22 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Start work on fritzdsl... Currently broken.

Modified Paths:
--------------
    ipcop/trunk/src/rc.d/rc.fritzdsl
    ipcop/trunk/src/rc.d/rc.red
    ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3

Modified: ipcop/trunk/src/rc.d/rc.fritzdsl
===================================================================
--- ipcop/trunk/src/rc.d/rc.fritzdsl    2012-02-05 17:22:03 UTC (rev 6318)
+++ ipcop/trunk/src/rc.d/rc.fritzdsl    2012-02-05 17:30:22 UTC (rev 6319)
@@ -1,23 +1,42 @@
 #!/bin/sh
 #
+# 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-2012 The IPCop Team
+#
 # $Id$
 #
 
-# Debugging. Comment it out to stop logging
-DEBUG="yes"
+DEBUG="off"
+eval $(/usr/local/bin/readhash /var/ipcop/ppp/settings)
+
+# 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 "FRITZDSL: $*"
     fi
-    /bin/echo "$*"
+    echo "$*"
 }
 
-if [ -e /tmp/need-depmod-`uname -r` ]; then
-    echo "Update modules dependencies, may take time..."
-    /sbin/depmod -a
-    /bin/rm -f /tmp/need-depmod-`uname -r`
-fi
 
+# TODO: find device IDs, /proc/pci is gone
+
+
 # ID borrowed from Gentoo ebuild,
 # should work with 'Card DSL','Card DSL v2.0', 'Card DSL SL', 'Card DSL 
USB','Card DSL SL USB'
 # pcmcia card not compiled
@@ -45,8 +64,7 @@
         msg "No supported modem found"
         exit 1
     fi
-
-    if [ ! -f "/lib/modules/`/bin/uname -r`/misc/fcdsl$FCDSLMODEM.o.gz" ]; then
+    if [ ! -f "/lib/modules/`/bin/uname -r`/extra/fcdsl$FCDSLMODEM.ko.gz" ]; 
then
         msg "Driver not uploaded"
         exit 1
     else

Modified: ipcop/trunk/src/rc.d/rc.red
===================================================================
--- ipcop/trunk/src/rc.d/rc.red 2012-02-05 17:22:03 UTC (rev 6318)
+++ ipcop/trunk/src/rc.d/rc.red 2012-02-05 17:30:22 UTC (rev 6319)
@@ -900,6 +900,8 @@
         myexit(1);
     }
 
+# TODO: find device IDs, /proc/pci is gone
+
     # controller number
     if ($pppsettings{'TYPE'} eq 'fritzdsl') {
         if (!system('/bin/grep', '1244:2700', '/proc/pci')) {

Modified: ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3
===================================================================
--- ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3      2012-02-05 17:22:03 UTC 
(rev 6318)
+++ ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3      2012-02-05 17:30:22 UTC 
(rev 6319)
@@ -1,6 +1,7 @@
 ## please place IPCop files first, then packages sorted by alphabetical order
 /etc/logrotate.d/squidGuard
 /etc/rc.d/rc.isdn
+/etc/rc.d/rc.fritzdsl
 /etc/rc.d/rc.red
 /etc/rc.d/rc.updatered
 /home/httpd/cgi-bin/fwrules.cgi

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to