]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
network-hotplug-bridges: Fix logical error in STP_PRIORITY check
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jan 2021 17:05:46 +0000 (17:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jan 2021 17:09:10 +0000 (17:09 +0000)
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/154/filelists/files
config/udev/network-hotplug-bridges

index ab8ebbec109055aebbc0533dd282d89cf20cae53..ec58127a20936430c53543a4cf2c12c755f416fb 100644 (file)
@@ -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
index 89470fec00c52e6cd723d155985a145fe1f6e877..4fc11fb33530491a56351839b9913f912174cbdf 100644 (file)
@@ -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")"