summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rc.inet16
1 files changed, 2 insertions, 4 deletions
diff --git a/rc.inet1 b/rc.inet1
index b9374ce..34daef1 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -145,10 +145,8 @@ br_open() {
debug_log "/sbin/ip link add name ${IFNAME[$1]} type bridge"
/sbin/ip link add name ${IFNAME[$1]} type bridge
for BRIF in ${BRNICS[$1]}; do
- debug_log "/sbin/ip link set dev $BRIF down"
- /sbin/ip link set dev $BRIF down
- debug_log "/sbin/ip address add 0.0.0.0 dev $BRIF"
- /sbin/ip address add 0.0.0.0 dev $BRIF
+ debug_log "/sbin/ip address flush dev $BRIF"
+ /sbin/ip address flush dev $BRIF
debug_log "/sbin/ip link set dev $BRIF master ${IFNAME[$1]}"
/sbin/ip link set dev $BRIF master ${IFNAME[$1]}
debug_log "/sbin/ip link set dev $BRIF up"