aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-13 18:50:31 +0000
committerBill Nottingham <notting@redhat.com>2005-01-13 18:50:31 +0000
commit211c85590d7edf937ce41d21a2cc7147569a30b8 (patch)
treed14f1774fff67d8310ec818d66040d69e0df3848
parent94f6553d759432f1ba17e651856edad29b6d57c4 (diff)
downloadinitscripts-211c85590d7edf937ce41d21a2cc7147569a30b8.tar
initscripts-211c85590d7edf937ce41d21a2cc7147569a30b8.tar.gz
initscripts-211c85590d7edf937ce41d21a2cc7147569a30b8.tar.bz2
initscripts-211c85590d7edf937ce41d21a2cc7147569a30b8.tar.xz
initscripts-211c85590d7edf937ce41d21a2cc7147569a30b8.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 7190b75d..d44f9f10 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -99,6 +99,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
@@ -108,6 +109,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