]> git.ipfire.org Git - people/ms/network.git/commitdiff
hotplug: Do not attempt to remove special device ip_vti0
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2018 17:52:49 +0000 (19:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Sep 2018 17:52:49 +0000 (19:52 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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}")"