]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/udev/network-hotplug
hotplug: Don't try to remove gre0
[people/stevee/network.git] / src / udev / network-hotplug
index f058dd7541f4653870e23cbddbf2dfeb4ef466b7..c810bf2e6750b8eb917e7ac3895b280f394e9d5a 100644 (file)
@@ -84,6 +84,13 @@ case "${SUBSYSTEM}" in
                                        log WARNING "Got to hotplug event for a port which does not exist: ${INTERFACE}"
 
                                        # Try to remove the device again
+
+                                       # GRE
+                                       if device_is_gre "${INTERFACE}" && [ "${INTERFACE}" = "gre0" ]; then
+                                               log DEBUG "gre0 cannot be removed"
+                                               exit ${EXIT_OK}
+                                       fi
+
                                        TYPE="$(device_get_type "${INTERFACE}")"
                                        case "${TYPE}" in
                                                bonding)