Revision 1108,
778 bytes
checked in by daisuke, 14 years ago
(diff) |
import initscripts-8.90.6 from internal cvs repository
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | PATH=/sbin:/usr/sbin:/bin:/usr/bin |
---|
4 | |
---|
5 | # Get global network configuration |
---|
6 | [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network |
---|
7 | |
---|
8 | CONFIG=$1 |
---|
9 | |
---|
10 | . $CONFIG |
---|
11 | |
---|
12 | # stopping ibod daemon for channel bundling |
---|
13 | if [ -f /var/lock/subsys/ibod ] ; then |
---|
14 | kill -9 $(pidof ibod) >/dev/null 2>&1 |
---|
15 | rm -f /var/lock/subsys/ibod |
---|
16 | fi |
---|
17 | |
---|
18 | # Shut down IPv6 |
---|
19 | /etc/sysconfig/network-scripts/ifdown-ipv6 $CONFIG |
---|
20 | |
---|
21 | # shutdown isdn device |
---|
22 | isdnctrl hangup $DEVICE >/dev/null 2>&1 |
---|
23 | sleep 1 |
---|
24 | ip link set dev $DEVICE down >/dev/null 2>&1 |
---|
25 | |
---|
26 | # delete isdn device |
---|
27 | isdnctrl delif $DEVICE >/dev/null 2>&1 |
---|
28 | |
---|
29 | # kill ipppd daemon |
---|
30 | if [ -f /var/run/ipppd.$DEVICE.pid ] ; then |
---|
31 | pppdpid=`cat /var/run/ipppd.$DEVICE.pid` |
---|
32 | kill -9 $pppdpid > /dev/null 2>&1 |
---|
33 | rm -f /var/run/ipppd.$DEVICE.pid > /dev/null 2>&1 |
---|
34 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.