aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index bf9c9e9f..6aa00b61 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -69,7 +69,7 @@ fi
retcode=0
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
- [ -n "`pidof -x dhcpcd`" ] && {
+ [ -n "`pidof -x dhcpcd`" && -r "/var/run/dhcpcd-${DEVICE}.pid" ] && {
kill `cat /var/run/dhcpcd-${DEVICE}.pid`
retcode=$?
}