diff options
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index a646ff70..95f11001 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -69,6 +69,12 @@ fi retcode=0 if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then + [ -n "`pidof -x dhclient`" ] && { + if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then + kill `cat /var/run/dhclient-${DEVICE}.pid` >/dev/null 2>&1 + retcode=$? + fi + } [ -n "`pidof -x dhcpcd`" ] && { if [ -f "/etc/dhcpc/dhcpcd-${DEVICE}.pid" ]; then kill `cat /etc/dhcpc/dhcpcd-${DEVICE}.pid` >/dev/null 2>&1 |