[1/2] udev: Add more logging to bridge hotplug script

Message ID 20200214134819.23170-1-michael.tremer@ipfire.org
State Accepted
Commit 943eab6695bfd0ea20178e44effc97b4b61b0e14
Headers
Series [1/2] udev: Add more logging to bridge hotplug script |

Commit Message

Michael Tremer Feb. 14, 2020, 1:48 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/udev/network-hotplug-bridges | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplug-bridges
index 5144a7712..30a671f04 100644
--- a/config/udev/network-hotplug-bridges
+++ b/config/udev/network-hotplug-bridges
@@ -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
 		;;