From 502f6c63a3120a85ca855ec9aaec9c6cb90cbefd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 18 Jan 2021 17:05:46 +0000 Subject: [PATCH] network-hotplug-bridges: Fix logical error in STP_PRIORITY check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Daniel Weismüller Signed-off-by: Michael Tremer --- config/rootfiles/core/154/filelists/files | 1 + config/udev/network-hotplug-bridges | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/rootfiles/core/154/filelists/files b/config/rootfiles/core/154/filelists/files index ab8ebbec10..ec58127a20 100644 --- a/config/rootfiles/core/154/filelists/files +++ b/config/rootfiles/core/154/filelists/files @@ -5,6 +5,7 @@ etc/rc.d/init.d/functions etc/rc.d/init.d/sshd etc/rc.d/init.d/unbound etc/rc.d/init.d/wlanclient +lib/udev/network-hotplug-bridges opt/pakfire/lib/functions.sh srv/web/ipfire/cgi-bin/country.cgi srv/web/ipfire/cgi-bin/credits.cgi diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplug-bridges index 89470fec00..4fc11fb335 100644 --- a/config/udev/network-hotplug-bridges +++ b/config/udev/network-hotplug-bridges @@ -87,8 +87,8 @@ STP_PRIORITY="$(get_value "${ZONE}_STP_PRIORITY")" case "${MODE}" in bridge) # We need to check if $STP_PRIORITY has a valid value if not set it - if [ -n "${STP_PRIORITY}" ]; then - STP_PRIORITY=16384; + if [ -z "${STP_PRIORITY}" ]; then + STP_PRIORITY=16384 fi ADDRESS="$(get_value "${ZONE}_MACADDR")" -- 2.39.5