diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2018-07-26 02:26:22 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2018-11-25 14:18:39 -0600 |
commit | 053c460b5308b45adf551adf56ac0ef4ba5d7e41 (patch) | |
tree | c36eb5f9ed9b82639e85c68ade502983c777db01 /rc.inet1 | |
parent | bbf50a821d8134dcec0f00dce94885f7e6de3bcf (diff) | |
download | slacknetsetup-053c460b5308b45adf551adf56ac0ef4ba5d7e41.tar.xz |
Flush bridge interface address before destroying it
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -286,14 +286,14 @@ if_down() { if [ -x /etc/rc.d/rc.wireless ]; then . /etc/rc.d/rc.wireless ${1} stop # Kill wireless daemons if any. fi + # Flush the address from the interface: + ip address flush dev ${1} # Set interface v6 autoconf back to the default (disabled): echo "0" >/proc/sys/net/ipv6/conf/$1/autoconf # If the interface is a bridge, then destroy it now: if [ -n "${BRNICS[$i]}" ]; then br_close $i fi - # Flush the address from the interface: - ip address flush dev ${1} fi } |