summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2018-07-26 02:26:22 +0100
committerRobby Workman <rworkman@slackware.com>2018-11-25 14:18:39 -0600
commit053c460b5308b45adf551adf56ac0ef4ba5d7e41 (patch)
treec36eb5f9ed9b82639e85c68ade502983c777db01 /rc.inet1
parentbbf50a821d8134dcec0f00dce94885f7e6de3bcf (diff)
downloadslacknetsetup-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.inet14
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 6cbaa15..51ae78f 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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
}