]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/helpers/bridge-stp
bridge-stp: Fix wrong variable name
[people/ms/network.git] / 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.