]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/udev/network-hotplug
hotplug: Do not attempt to remove the special ip6gre0 device
[people/ms/network.git] / src / udev / network-hotplug
index ba0657342d8c04e114fbc48e1c7e1e6d93d337bc..42bf319605d2c5395f384dceaa1db310ac99c730 100644 (file)
@@ -85,8 +85,13 @@ case "${SUBSYSTEM}" in
 
                                        # Try to remove the device again
 
+                                       # GRE6
+                                       if device_is_gre6 "${INTERFACE}" && [ "${INTERFACE}" = "ip6gre0" ]; then
+                                               log DEBUG "ip6gre0 cannot be removed"
+                                               exit ${EXIT_OK}
+
                                        # GRE
-                                       if device_is_gre "${INTERFACE}" && [ "${INTERFACE}" = "gre0" ]; then
+                                       elif device_is_gre "${INTERFACE}" && [ "${INTERFACE}" = "gre0" ]; then
                                                log DEBUG "gre0 cannot be removed"
                                                exit ${EXIT_OK}