From 622fc0a6934fcc4ce96663248c12083250f37ea8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 13 Jan 2005 18:49:03 +0000 Subject: don't flush the address on DHCP - preserve old behavior --- sysconfig/network-scripts/ifdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 3b3a5359..752cf925 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -80,6 +80,7 @@ retcode=0 pump -r -i ${DEVICE} retcode=$? } +if ! [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then expand_config # we can't just delete the configured address because that address # may have been changed in the config file since the device was @@ -90,6 +91,7 @@ retcode=0 else ip addr flush dev ${REALDEVICE} label ${DEVICE} 2>/dev/null fi +fi if [ "${REALDEVICE}" = "${DEVICE}" ]; then ip link set ${DEVICE} down -- cgit