aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-13 18:50:11 +0000
committerBill Nottingham <notting@redhat.com>2005-01-13 18:50:11 +0000
commitcb3815b23d83d3ceeae0c9bd9b484feba9ff0d8c (patch)
tree928eaf147dc0621f38e4be1a8cf5bce63fde303d
parent90f5bdd87fd86d0263e3a5f12f6e817da9d772e6 (diff)
downloadinitscripts-cb3815b23d83d3ceeae0c9bd9b484feba9ff0d8c.tar
initscripts-cb3815b23d83d3ceeae0c9bd9b484feba9ff0d8c.tar.gz
initscripts-cb3815b23d83d3ceeae0c9bd9b484feba9ff0d8c.tar.bz2
initscripts-cb3815b23d83d3ceeae0c9bd9b484feba9ff0d8c.tar.xz
initscripts-cb3815b23d83d3ceeae0c9bd9b484feba9ff0d8c.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 8d84f404..a2f17b31 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -86,6 +86,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
@@ -95,6 +96,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