From: Michael Tremer Date: Tue, 13 Jun 2017 18:28:46 +0000 (+0100) Subject: hotplug: Don't handle any events for loopback X-Git-Tag: 009~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47e2688a84857e9a93415a342e2eb6a4b9111681;p=network.git hotplug: Don't handle any events for loopback Signed-off-by: Michael Tremer --- diff --git a/src/udev/network-hotplug b/src/udev/network-hotplug index 535fafdc..4ab490a6 100644 --- a/src/udev/network-hotplug +++ b/src/udev/network-hotplug @@ -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