aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-06-26 02:30:42 +0000
committerBill Nottingham <notting@redhat.com>2002-06-26 02:30:42 +0000
commitb344e5585a4894d6de30aefa3c54b2e692382cbd (patch)
treea07c95c7b941e3a6c2e2434302bb8fbb42810086 /sysconfig/network-scripts/ifdown
parentafc5d1bea9291d6f082ee6a0ed356367979f3c05 (diff)
downloadinitscripts-b344e5585a4894d6de30aefa3c54b2e692382cbd.tar
initscripts-b344e5585a4894d6de30aefa3c54b2e692382cbd.tar.gz
initscripts-b344e5585a4894d6de30aefa3c54b2e692382cbd.tar.bz2
initscripts-b344e5585a4894d6de30aefa3c54b2e692382cbd.tar.xz
initscripts-b344e5585a4894d6de30aefa3c54b2e692382cbd.zip
dhclient support <dsainty@redhat.com>
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index a646ff70..95f11001 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -69,6 +69,12 @@ fi
retcode=0
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
+ [ -n "`pidof -x dhclient`" ] && {
+ if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then
+ kill `cat /var/run/dhclient-${DEVICE}.pid` >/dev/null 2>&1
+ retcode=$?
+ fi
+ }
[ -n "`pidof -x dhcpcd`" ] && {
if [ -f "/etc/dhcpc/dhcpcd-${DEVICE}.pid" ]; then
kill `cat /etc/dhcpc/dhcpcd-${DEVICE}.pid` >/dev/null 2>&1