mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-02 00:02:55 +02:00
network-hotplug-bridges: Fix logical error in STP_PRIORITY check
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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")"
|
||||
|
||||
Reference in New Issue
Block a user