aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-13 18:50:45 +0000
committerBill Nottingham <notting@redhat.com>2005-01-13 18:50:45 +0000
commitf0b977c40e23d3ba281d40644d97c98c8a7dae0f (patch)
tree981f31c86f0fcff3115298b499f61f9eb38832c3
parentb670ede52838210068bf36b9f1743396e0af39b8 (diff)
downloadinitscripts-f0b977c40e23d3ba281d40644d97c98c8a7dae0f.tar
initscripts-f0b977c40e23d3ba281d40644d97c98c8a7dae0f.tar.gz
initscripts-f0b977c40e23d3ba281d40644d97c98c8a7dae0f.tar.bz2
initscripts-f0b977c40e23d3ba281d40644d97c98c8a7dae0f.tar.xz
initscripts-f0b977c40e23d3ba281d40644d97c98c8a7dae0f.zip
don't flush addresses for dhcp - preserve old behavior
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 2295ed27..4236cca6 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -95,6 +95,7 @@ retcode=0
pump -r -i ${DEVICE}
retcode=$?
}
+if ! [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
# 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
@@ -104,6 +105,7 @@ retcode=0
else
ip addr flush dev ${REALDEVICE} label ${DEVICE} 2>/dev/null
fi
+fi
if [ "${REALDEVICE}" = "${DEVICE}" ]; then
ip link set dev ${DEVICE} down