mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
udev: Add more logging to bridge hotplug script
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
6f57c5e01f
commit
943eab6695
@@ -72,6 +72,7 @@ ZONE=$(detect_zone)
|
||||
|
||||
# Cannot proceed if we could not find a zone
|
||||
if [ -z "${ZONE}" ]; then
|
||||
logger "Could not find a bridged zone for ${INTERFACE}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -93,6 +94,7 @@ case "${MODE}" in
|
||||
fi
|
||||
|
||||
# Attach the physical device
|
||||
logger "Attach ${INTERFACE} to ${BRIDGE}"
|
||||
ip link set dev "${INTERFACE}" master "${BRIDGE}"
|
||||
ip link set dev "${INTERFACE}" up
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user