Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
__device_type_matches "${device}" 778
}
+device_is_gre6() {
+ local device="${1}"
+ assert isset device
+
+ __device_type_matches "${device}" 823
+}
+
device_is_vti() {
local device="${1}"
assert isset device
# 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}