aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifdown3
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