From 8c7aa30b676ee7a9c6de4449c9b5f2319cf71739 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Thu, 21 Jun 2001 15:39:30 +0000 Subject: - add support isdn --- sysconfig/network-scripts/ifdown-ippp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 sysconfig/network-scripts/ifdown-ippp (limited to 'sysconfig/network-scripts/ifdown-ippp') 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 -- cgit v1.2.1