diff options
author | Robby Workman <rworkman@slackware.com> | 2017-07-12 02:24:01 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-07-12 02:24:35 -0500 |
commit | 7908176c86e99f57d6fb85593606e23201e8a7b4 (patch) | |
tree | 752471e73192dbd2fc46fa98623a9b48f9183b75 | |
parent | e9ceb5e199380e8bede31a091f423e4bcbc46458 (diff) | |
download | slacknetsetup-7908176c86e99f57d6fb85593606e23201e8a7b4.tar.xz |
rc.inet1: Fix bridge teardown code
-rw-r--r-- | rc.inet1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |