diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-15 13:35:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-15 13:35:13 +0000 |
commit | 9146859d63fb9bc88018664950a7d70086ec51eb (patch) | |
tree | a03c9c4b7b0944b8042d8e9dff63370e1a023548 /main/vlan/mvlan.post-down | |
parent | 36681224a041c8256f2054f62d7b075743c9c1c6 (diff) | |
download | aports-9146859d63fb9bc88018664950a7d70086ec51eb.tar.bz2 aports-9146859d63fb9bc88018664950a7d70086ec51eb.tar.xz |
main/vlan: move from testing
Diffstat (limited to 'main/vlan/mvlan.post-down')
-rw-r--r-- | main/vlan/mvlan.post-down | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/vlan/mvlan.post-down b/main/vlan/mvlan.post-down new file mode 100644 index 0000000000..229fc0e7f5 --- /dev/null +++ b/main/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 |