]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/udev/network-hotplug
hotplug: Let bridges create their ports in hotplug event
[people/ms/network.git] / src / udev / network-hotplug
index af6c0df90e5173a6194488345f8e5a602a38a4a7..2a2d3e1fdc95720cea6b0c9ad0ce52b68667c08c 100644 (file)
@@ -63,12 +63,8 @@ case "${SUBSYSTEM}" in
        net)
                assert isset INTERFACE
 
-               # Don't do anything for zones
-               if zone_exists "${INTERFACE}"; then
-                       exit ${EXIT_OK}
-
                # Stop processing rules for the loopback device
-               elif device_is_loopback ${INTERFACE}; then
+               if device_is_loopback ${INTERFACE}; then
                        exit ${EXIT_OK}
 
                # Stop processing rules for wireless monitoring devices
@@ -77,7 +73,7 @@ case "${SUBSYSTEM}" in
                fi
 
                # Did we get called for a non-existing interface?
-               if ! port_exists "${INTERFACE}"; then
+               if ! zone_exists "${INTERFACE}" && ! port_exists "${INTERFACE}"; then
                        case "${ACTION}" in
                                add)
                                        log WARNING "Got to hotplug event for a port which does not exist: ${INTERFACE}"