aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-12 20:15:36 +0000
committerBill Nottingham <notting@redhat.com>2005-01-12 20:15:36 +0000
commitfc96b3b242cb1ab1c785e74947bb744d2f8fdbce (patch)
tree60bacf85ceb82ac4c29012022528891792197c59 /sysconfig
parent67a6e2ecbd0e058cd000d9581061af80dfa5aa53 (diff)
downloadinitscripts-fc96b3b242cb1ab1c785e74947bb744d2f8fdbce.tar
initscripts-fc96b3b242cb1ab1c785e74947bb744d2f8fdbce.tar.gz
initscripts-fc96b3b242cb1ab1c785e74947bb744d2f8fdbce.tar.bz2
initscripts-fc96b3b242cb1ab1c785e74947bb744d2f8fdbce.tar.xz
initscripts-fc96b3b242cb1ab1c785e74947bb744d2f8fdbce.zip
kill dhcp client even if BOOTOPROTO is now static (#127726, others)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifdown3
1 files changed, 0 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 5bc8f5e8..db70f066 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -80,7 +80,6 @@ if [ "${NETWORKING_IPV6}" = "yes" ]; then
fi;
retcode=0
-if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
[ -n "`pidof -x dhclient`" ] && {
if [ -f "/var/run/dhclient-${DEVICE}.pid" ]; then
if [[ "$DHCPRELEASE" = [yY1]* ]]; then
@@ -106,7 +105,6 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
pump -r -i ${DEVICE}
retcode=$?
}
-else
# 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
@@ -116,7 +114,6 @@ else
else
ip addr flush dev ${REALDEVICE} label ${DEVICE} 2>/dev/null
fi
-fi
if [ "${REALDEVICE}" = "${DEVICE}" ]; then
ip link set dev ${DEVICE} down