From cdd54e4fb8c44ab9dbff72d309c49655427c2022 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 12 Jan 2005 20:16:07 +0000 Subject: kill dhcp client even if BOOTOPROTO is now static (#127726, others) --- sysconfig/network-scripts/ifdown | 3 --- 1 file changed, 3 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 16954b4d..015bb90d 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -80,7 +80,6 @@ if [ "${NETWORKING_IPV6}" = "yes" ]; then 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 @@ -100,7 +99,6 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then pump -r -i ${DEVICE} retcode=$? } -else # we can't just delete the configured address because that address # may have been changed in the config file since the device was # brought up. Flush all addresses associated with this @@ -110,7 +108,6 @@ else else ip addr flush dev ${REALDEVICE} label ${DEVICE} 2>/dev/null fi -fi if [ "${REALDEVICE}" = "${DEVICE}" ]; then ip link set dev ${DEVICE} down -- cgit v1.2.1