From 22c356c886ee24fe1928a4ab6617be673e0fffe4 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 14 Jul 2015 13:32:39 +0000 Subject: [PATCH] - merged fixes for recent brctl --- lib/ifup-br | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ifup-br b/lib/ifup-br index 4fd7b85..4182b5c 100755 --- a/lib/ifup-br +++ b/lib/ifup-br @@ -65,20 +65,19 @@ done # standard -[ -n "$AGEING" ] && brctl setageing "$AGEING" -[ -n "$GCINT" ] && brctl setgcint "$GCINT" +[ -n "$AGEING" ] && brctl setageing ${DEVICE} "$AGEING" [ -n "$FD" ] && brctl setfd ${DEVICE} "$FD" # spanning tree protocol if is_yes "$SPANNING_TREE"; then - brctl stp ${DEVICE} yes + brctl stp ${DEVICE} on [ -n "$BRIDGEPRIO" ] && brctl setbridgeprio ${DEVICE} "$BRIDGEPRIO" [ -n "$HELLO" ] && brctl sethello ${DEVICE} "$HELLO" [ -n "$MAXAGE" ] && brctl setmaxage ${DEVICE} "$MAXAGE" [ -n "$PATHCOST" -a -n "$PATHCOST_PORT" ] && brctl setpathcost ${DEVICE} "$PATHCOST_PORT" "$PATHCOST" [ -n "$PORTPRIO" -a -n "$PORTPRIO_PORT" ] && brctl setportprio ${DEVICE} "$PORTPRIO_PORT" "$PORTPRIO" else - brctl stp ${DEVICE} no + brctl stp ${DEVICE} off fi ip link set dev ${DEVICE} multicast ${MULTICAST} ${ARP} -- 2.44.0