mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 07:23:03 +02:00
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
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
a4420101a8
commit
f8bf19c92e
@@ -81,6 +81,7 @@ MODE="$(get_value "${ZONE}_MODE")"
|
||||
|
||||
# The name of the virtual bridge
|
||||
BRIDGE="$(get_value "${ZONE}_DEV")"
|
||||
STP="$(get_value "${ZONE}_STP")"
|
||||
|
||||
case "${MODE}" in
|
||||
bridge)
|
||||
@@ -89,7 +90,8 @@ case "${MODE}" in
|
||||
|
||||
# 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}" = "on" ] && echo "stp_state 1")
|
||||
#ip link set "${BRIDGE}" up
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user