This device cannot be removed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
[ -d "${SYS_CLASS_NET}/${device}/phy80211" ]
}
+device_is_gre() {
+ local device="${1}"
+ assert isset device
+
+ __device_type_matches "${device}" 778
+}
+
device_is_vti() {
local device="${1}"
assert isset device
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)