aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifdown9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index bcbab1f0..a646ff70 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -70,8 +70,13 @@ fi
retcode=0
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
[ -n "`pidof -x dhcpcd`" ] && {
- kill `cat /etc/dhcpc/dhcpcd-${DEVICE}.pid`
- retcode=$?
+ if [ -f "/etc/dhcpc/dhcpcd-${DEVICE}.pid" ]; then
+ kill `cat /etc/dhcpc/dhcpcd-${DEVICE}.pid` >/dev/null 2>&1
+ retcode=$?
+ elif [ -f "/var/run/dhcpcd-${DEVICE}.pid" ]; then
+ kill `cat /var/run/dhcpcd-${DEVICE}.pid` >/dev/null 2>&1
+ retcode=$?
+ fi
}
[ -n "`pidof -x pump`" ] && {
pump -r -i ${DEVICE}