From c2336f6bed09b221dba0cf9e9025690568c2ff6a Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Sat, 31 Dec 2016 15:03:32 +0100 Subject: [PATCH] Use MAC addresses to define a slave It is now also possible to use the MAC address to define a slave of a bridge. Simply add the mac address to the ZONE_SLAVES=''. Signed-off-by: Michael Tremer --- config/udev/network-hotplug-bridges | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplug-bridges index ff6d20a8b2..514b45de12 100644 --- a/config/udev/network-hotplug-bridges +++ b/config/udev/network-hotplug-bridges @@ -40,7 +40,9 @@ detect_zone() { # Try to find out if this INTERFACE is a slave of a zone local slave for slave in $(get_value "${zone}_SLAVES"); do - if [ "${INTERFACE}" = "${slave}" ]; then + + #Compare if the mac address matches or if the name matches + if ([ "$(