]> git.ipfire.org Git - network.git/commitdiff
hotplug: Don't handle any events for loopback
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Jun 2017 18:28:46 +0000 (19:28 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Jun 2017 18:28:46 +0000 (19:28 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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