From 3b2b6d5cb7d89362e784f73481c01c0e3be52d31 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 14 Aug 2000 05:07:10 +0000 Subject: support killing dhcpcd as well as starting it --- sysconfig/network-scripts/ifdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') 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 -- cgit v1.2.1