From: Michael Tremer Date: Sun, 31 Aug 2014 15:50:38 +0000 (+0200) Subject: bridge-stp: Fix wrong variable name X-Git-Tag: 007~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1400266c1bb656c69d3cc0ce2625d36ed0cd46;p=people%2Fms%2Fnetwork.git bridge-stp: Fix wrong variable name --- diff --git a/src/helpers/bridge-stp b/src/helpers/bridge-stp index 186f287a..c98d6a1b 100644 --- a/src/helpers/bridge-stp +++ b/src/helpers/bridge-stp @@ -27,6 +27,9 @@ LOG_FACILITY=$(basename ${0}) . /usr/lib/network/functions +# Read network configuration. +network_config_read + zone=${1} assert isset zone @@ -63,7 +66,7 @@ case "${STP_MODE}" in # Do this after the bridge has been added. ( sleep 2 - stp_bridge_set_protocol ${bridge} ${STP_MODE} + stp_bridge_set_protocol "${zone}" "${STP_MODE}" ) & # Tell mstpd that STP has to be enabled/disabled.