. /usr/lib/network/functions
+# Read network settings
+network_settings_read
+
zone=${1}
assert isset zone
exit ${EXIT_KERNEL_STP}
fi
-# Read zone configuration.
-zone_config_read ${zone}
+# Read zone settings
+zone_settings_read ${zone}
# Make sure STP is enabled for this zone.
assert enabled STP
# 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.