From df1400266c1bb656c69d3cc0ce2625d36ed0cd46 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 31 Aug 2014 17:50:38 +0200 Subject: [PATCH] bridge-stp: Fix wrong variable name --- src/helpers/bridge-stp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.47.3