From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel =?utf-8?q?Weism=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] Core 152: the script "network-hotplug-bridges" now reads the variable ${ZONE}_STP from /var/ipfire/ethernet/settings so that STP can be turned on and off for each bridge Date: Thu, 19 Nov 2020 14:18:49 +0100 Message-ID: <20201119131848.596-1-daniel.weismueller@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5222697816671807887==" List-Id: --===============5222697816671807887== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Daniel Weism=C3=BCller --- config/udev/network-hotplug-bridges | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplu= g-bridges index 33d6d65ba..7431377bb 100644 --- a/config/udev/network-hotplug-bridges +++ b/config/udev/network-hotplug-bridges @@ -81,6 +81,7 @@ MODE=3D"$(get_value "${ZONE}_MODE")" =20 # The name of the virtual bridge BRIDGE=3D"$(get_value "${ZONE}_DEV")" +STP=3D"$(get_value "${ZONE}_STP")" =20 case "${MODE}" in bridge) @@ -89,7 +90,8 @@ case "${MODE}" in =20 # We need to create the bridge if it doesn't exist, yet if [ ! -d "/sys/class/net/${BRIDGE}" ]; then - ip link add "${BRIDGE}" address "${ADDRESS}" type bridge + ip link add "${BRIDGE}" address "${ADDRESS}" type bridge \ + $([ "${STP}" =3D "on" ] && echo "stp_state 1") #ip link set "${BRIDGE}" up fi =20 --=20 2.28.0 --===============5222697816671807887==--