From 7908176c86e99f57d6fb85593606e23201e8a7b4 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 12 Jul 2017 02:24:01 -0500 Subject: rc.inet1: Fix bridge teardown code --- rc.inet1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc.inet1 b/rc.inet1 index dab898d..5f9c29d 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -88,15 +88,15 @@ br_open() { # Function to disassemble a bridge interface. br_close() { - /sbin/ip link set ${IFNAME[$1]} down + /sbin/ip link set dev ${IFNAME[$1]} down # argument is 'i' - the position of this interface in the IFNAME array. #for BRIF in $(echo ${BRNICS[$1]}); do for BRIF in $(ls --indicator-style=none /sys/class/net/${IFNAME[$1]}/brif/) do /sbin/ip link set dev $BRIF nomaster done - /sbin/ip link set ${IFNAME[$1]} down - /sbin/ip link del name ${IFNAME[$1]} type bridge + /sbin/ip link set dev ${IFNAME[$1]} down + /sbin/ip link del ${IFNAME[$1]} } # Function to bring up a network interface. If the interface is -- cgit v1.2.3