]> git.ipfire.org Git - people/stevee/network.git/commitdiff
bridge-stp: Fix wrong variable name
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 Aug 2014 15:50:38 +0000 (17:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 Aug 2014 15:50:38 +0000 (17:50 +0200)
src/helpers/bridge-stp

index 186f287af99284fa49cbfc0ece0756c7a6e994f6..c98d6a1beea4ba6c6aa3d162649c3fd070a9e4bd 100644 (file)
@@ -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.