[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[6146] ipcop/trunk/src/rc.d/rc.isdn
From:       owes () users ! sourceforge ! net
Date:       2011-11-30 14:43:36
Message-ID: E1RVlNo-0003dr-Bd () sfp-svn-3 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 6146
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6146&view=rev
Author:   owes
Date:     2011-11-30 14:43:36 +0000 (Wed, 30 Nov 2011)
Log Message:
-----------
Textual changes. Need to unload avmfritz to avoid mISDN (?) vs. hisax collision. ISDN \
probably works now, will need to get some wiring in place to do a real test.

Modified Paths:
--------------
    ipcop/trunk/src/rc.d/rc.isdn

Modified: ipcop/trunk/src/rc.d/rc.isdn
===================================================================
--- ipcop/trunk/src/rc.d/rc.isdn	2011-11-30 14:40:20 UTC (rev 6145)
+++ ipcop/trunk/src/rc.d/rc.isdn	2011-11-30 14:43:36 UTC (rev 6146)
@@ -1,14 +1,31 @@
-#!/bin/sh
+#!/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) 2001-2011 The IPCop Team
+#
 # $Id$
 #
 
+# Debugging. May need to eval from ppp/settings to use global DEBUG
+DEBUG="on"
 eval $(/usr/local/bin/readhash /var/ipcop/ethernet/isdn)
 
-# Debugging. Comment it out to stop logging
-DEBUG="yes"
 msg() {
-    if [ "z$DEBUG" != "z" ] ; then
+    if [ "$DEBUG" = "on" ] ; then
         /usr/bin/logger -t red "ISDN: $*"
     fi
     echo "$*"
@@ -18,10 +35,11 @@
 case "$1" in
 start)
     if [ "$ENABLED" = "on" ]; then
-        /sbin/rmmod hisax_st5481           2>/dev/null
-        /sbin/rmmod hisax_fcpcipnp         2>/dev/null
-        /sbin/rmmod hisax_isac             2>/dev/null
-        /sbin/rmmod hisax                  2>/dev/null
+        /sbin/modprobe -r hisax_st5481      2>/dev/null
+        /sbin/modprobe -r hisax_fcpcipnp    2>/dev/null
+        /sbin/modprobe -r hisax_isac        2>/dev/null
+        /sbin/modprobe -r hisax             2>/dev/null
+        /sbin/modprobe -r avmfritz          2>/dev/null
 
         # Create ISDN devices in /dev
         i=0
@@ -74,10 +92,10 @@
     /usr/sbin/isdnctrl delif ippp0 2>/dev/null
     /usr/bin/killall ipppd         2>/dev/null
     /usr/bin/killall ibod          2>/dev/null
-    /sbin/rmmod hisax_st5481       2>/dev/null
-    /sbin/rmmod hisax_fcpcipnp     2>/dev/null
-    /sbin/rmmod hisax_isac         2>/dev/null
-    /sbin/rmmod hisax              2>/dev/null
+    /sbin/modprobe -r hisax_st5481      2>/dev/null
+    /sbin/modprobe -r hisax_fcpcipnp    2>/dev/null
+    /sbin/modprobe -r hisax_isac        2>/dev/null
+    /sbin/modprobe -r hisax             2>/dev/null
 
     # Remove ISDN devices from /dev
     i=0

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. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic