aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-ippp
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2001-06-21 15:39:30 +0000
committerThan Ngo <than@redhat.com>2001-06-21 15:39:30 +0000
commit8c7aa30b676ee7a9c6de4449c9b5f2319cf71739 (patch)
treee563a36ea0ce32613c973a01dc1666ca72a9ee87 /sysconfig/network-scripts/ifdown-ippp
parent31d016a1a891e6092d922e8f36d74e1233e067cd (diff)
downloadinitscripts-8c7aa30b676ee7a9c6de4449c9b5f2319cf71739.tar
initscripts-8c7aa30b676ee7a9c6de4449c9b5f2319cf71739.tar.gz
initscripts-8c7aa30b676ee7a9c6de4449c9b5f2319cf71739.tar.bz2
initscripts-8c7aa30b676ee7a9c6de4449c9b5f2319cf71739.tar.xz
initscripts-8c7aa30b676ee7a9c6de4449c9b5f2319cf71739.zip
- add support isdn
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifdown-ippp26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown-ippp b/sysconfig/network-scripts/ifdown-ippp
new file mode 100755
index 00000000..f124a867
--- /dev/null
+++ b/sysconfig/network-scripts/ifdown-ippp
@@ -0,0 +1,26 @@
+#! /bin/sh
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+CONFIG=$1
+
+. $CONFIG
+
+# stopping ibod daemon for channel bundling
+if [ -f /var/lock/subsys/ibod ] ; then
+ kill -9 $(pidof ibod) >/dev/null 2>&1
+ rm -f /var/lock/subsys/ibod
+fi
+
+# shutdown isdn device
+ifconfig $DEVICE down >/dev/null 2>&1
+
+# delete isdn device
+isdnctrl delif $DEVICE >/dev/null 2>&1
+
+# kill ipppd daemon
+if [ -f /var/run/ipppd.$DEVICE.pid ] ; then
+ pppdpid=`cat /var/run/ipppd.$DEVICE.pid`
+ kill -9 $pppdpid > /dev/null 2>&1
+ rm -f /var/run/ipppd.$DEVICE.pid > /dev/null 2>&1
+fi