summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
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
}