aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vlan/mvlan.post-down
diff options
context:
space:
mode:
Diffstat (limited to 'testing/vlan/mvlan.post-down')
-rw-r--r--testing/vlan/mvlan.post-down14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/vlan/mvlan.post-down b/testing/vlan/mvlan.post-down
new file mode 100644
index 0000000000..229fc0e7f5
--- /dev/null
+++ b/testing/vlan/mvlan.post-down
@@ -0,0 +1,14 @@
+#!/bin/sh
+case "$IFACE" in
+ *#[0-9]*)
+ MVLANID="${IFACE##*#}"
+ IF_MVLAN_RAW_DEVICE="${IFACE%#*}"
+ ;;
+ *)
+ ;;
+esac
+if [ -n "$IF_MVLAN_RAW_DEVICE" ]
+then
+ # Kernel new style configuration
+ ip link del link dev "$IFACE"
+fi