diff options
author | Bill Nottingham <notting@redhat.com> | 2000-08-14 05:07:10 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-08-14 05:07:10 +0000 |
commit | 3b2b6d5cb7d89362e784f73481c01c0e3be52d31 (patch) | |
tree | 5254321377cb1a53099f993bae1e27feee8f61ca /sysconfig | |
parent | a59f7136d495474f6079a323a491ce314a636c37 (diff) | |
download | initscripts-3b2b6d5cb7d89362e784f73481c01c0e3be52d31.tar initscripts-3b2b6d5cb7d89362e784f73481c01c0e3be52d31.tar.gz initscripts-3b2b6d5cb7d89362e784f73481c01c0e3be52d31.tar.bz2 initscripts-3b2b6d5cb7d89362e784f73481c01c0e3be52d31.tar.xz initscripts-3b2b6d5cb7d89362e784f73481c01c0e3be52d31.zip |
support killing dhcpcd as well as starting it
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 488d141c..e7acf9dc 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -40,7 +40,8 @@ fi check_device_down && exit 0 if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then - pump -r -i ${DEVICE} + [ -n "`pidof -x pump`" ] && pump -r -i ${DEVICE} + [ -n "`pidof -x dhcpcd'" ] && dhcpcd -k ${DEVICE} fi ifconfig ${DEVICE} down |