diff options
| author | Bill Nottingham <notting@redhat.com> | 2005-01-13 18:49:03 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2005-01-13 18:49:03 +0000 |
| commit | 622fc0a6934fcc4ce96663248c12083250f37ea8 (patch) | |
| tree | c40fedca9e86783d67378575eed90c643e089420 | |
| parent | fedff4b5784920363b5074bf44718977cd23600a (diff) | |
don't flush the address on DHCP - preserve old behavior
| -rwxr-xr-x | sysconfig/network-scripts/ifdown | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
