aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-09-26 18:46:23 +0000
committerBill Nottingham <notting@redhat.com>2001-09-26 18:46:23 +0000
commitc89de09bb5ac6e9f382bd919bc92a0381374da47 (patch)
treeb1051fee240abef3677564eb2b46e2c01f872204 /sysconfig/network-scripts
parent8bcc6dbeb644ff182706ec341bda4771e7166672 (diff)
downloadinitscripts-c89de09bb5ac6e9f382bd919bc92a0381374da47.tar
initscripts-c89de09bb5ac6e9f382bd919bc92a0381374da47.tar.gz
initscripts-c89de09bb5ac6e9f382bd919bc92a0381374da47.tar.bz2
initscripts-c89de09bb5ac6e9f382bd919bc92a0381374da47.tar.xz
initscripts-c89de09bb5ac6e9f382bd919bc92a0381374da47.zip
fix ifdown for aliases
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 45692820..c9b03c85 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -85,8 +85,9 @@ else
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
- # brought up. Flush all addresses instead.
- ip addr flush dev ${DEVICE}
+ # brought up. Flush all addresses associated with this
+ # instance instead.
+ ip addr flush dev ${REALDEVICE} label ${DEVICE}
fi
if [ "${REALDEVICE}" = "${DEVICE}" ]; then