]> git.ipfire.org Git - people/ms/network.git/commitdiff
hotplug: Ignore all PPP interfaces
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2018 16:13:07 +0000 (18:13 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2018 16:16:04 +0000 (18:16 +0200)
Those will come up when a PPP session is being established
with the pppoe-server.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/udev/network-hotplug

index 2a2d3e1fdc95720cea6b0c9ad0ce52b68667c08c..f058dd7541f4653870e23cbddbf2dfeb4ef466b7 100644 (file)
@@ -67,6 +67,11 @@ case "${SUBSYSTEM}" in
                if device_is_loopback ${INTERFACE}; then
                        exit ${EXIT_OK}
 
+               # Skip all pppN interfaces (for pppoe-server)
+               elif device_is_ppp "${INTERFACE}" && [[ ${INTERFACE} =~ ^ppp[0-9]+$ ]]; then
+                       log DEBUG "Ignoring PPP device"
+                       exit ${EXIT_OK}
+
                # Stop processing rules for wireless monitoring devices
                elif device_is_wireless_monitor ${INTERFACE}; then
                        exit ${EXIT_OK}