]> git.ipfire.org Git - network.git/blobdiff - src/udev/network-hotplug
hotplug: Don't handle any events for loopback
[network.git] / src / udev / network-hotplug
index 535fafdcb545fac1f597e5d89904601fd3307fb8..4ab490a6ca370dbe96bdd6149e5c614dbcde30b7 100644 (file)
@@ -54,6 +54,14 @@ case "${SUBSYSTEM}" in
                # 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
+                       exit ${EXIT_OK}
+
+               # Stop processing rules for wireless monitoring devices
+               elif device_is_wireless_monitor ${INTERFACE}; then
+                       exit ${EXIT_OK}
                fi
 
                # Get the internal type of the device for later processing
@@ -61,11 +69,6 @@ case "${SUBSYSTEM}" in
 
                log DEBUG "  INTERFACE='${INTERFACE}', TYPE='${TYPE}'"
 
-               # Stop processing rules for wireless monitoring devices
-               if device_is_wireless_monitor "${INTERFACE}"; then
-                       exit ${EXIT_OK}
-               fi
-
                # Handle special cases like removing automatically created
                # devices that we don't want
                case "${ACTION},${TYPE}" in