diff options
author | Bill Nottingham <notting@redhat.com> | 2001-09-26 18:49:57 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-09-26 18:49:57 +0000 |
commit | c9a5053823d1a907ec0546c05cca520713de3e41 (patch) | |
tree | a4ae01cbe4941db431a4da34e3d269e98fdc233a /sysconfig/network-scripts | |
parent | 04071dfb777c4c3b43d6d5513ebb84b5c19f7cc7 (diff) | |
download | initscripts-c9a5053823d1a907ec0546c05cca520713de3e41.tar initscripts-c9a5053823d1a907ec0546c05cca520713de3e41.tar.gz initscripts-c9a5053823d1a907ec0546c05cca520713de3e41.tar.bz2 initscripts-c9a5053823d1a907ec0546c05cca520713de3e41.tar.xz initscripts-c9a5053823d1a907ec0546c05cca520713de3e41.zip |
backport flush fix from -HEAD
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index c807c711..c9b03c85 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -83,7 +83,11 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then } else expand_config - ip addr del ${IPADDR}/${PREFIX} brd ${BROADCAST:-+} dev ${REALDEVICE} + # 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 + # instance instead. + ip addr flush dev ${REALDEVICE} label ${DEVICE} fi if [ "${REALDEVICE}" = "${DEVICE}" ]; then |