]> git.ipfire.org Git - network.git/blobdiff - src/udev/network-hotplug
hotplug: Do not attempt to remove special device ip_vti0
[network.git] / src / udev / network-hotplug
index c810bf2e6750b8eb917e7ac3895b280f394e9d5a..ba0657342d8c04e114fbc48e1c7e1e6d93d337bc 100644 (file)
@@ -89,6 +89,11 @@ case "${SUBSYSTEM}" in
                                        if device_is_gre "${INTERFACE}" && [ "${INTERFACE}" = "gre0" ]; then
                                                log DEBUG "gre0 cannot be removed"
                                                exit ${EXIT_OK}
+
+                                       # VTI
+                                       elif device_is_vti "${INTERFACE}" && [ "${INTERFACE}" = "ip_vti0" ]; then
+                                               log DEBUG "ip_vti0 cannot be removed"
+                                               exit ${EXIT_OK}
                                        fi
 
                                        TYPE="$(device_get_type "${INTERFACE}")"