From 053c460b5308b45adf551adf56ac0ef4ba5d7e41 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Thu, 26 Jul 2018 02:26:22 +0100 Subject: Flush bridge interface address before destroying it Signed-off-by: Robby Workman --- rc.inet1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.inet1') 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 } -- cgit v1.2.3