summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet16
1 files 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