summaryrefslogtreecommitdiff
path: root/package/base-files/extra/etc/network/if-post-down.d/02-vlan
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-29 22:25:14 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-29 22:25:14 +0100
commit8d7b67dcc1e0f49d11bb98614dc1aad30ddfb4a1 (patch)
tree06f907b074ad1c5181b9ee2904d849235ef2704b /package/base-files/extra/etc/network/if-post-down.d/02-vlan
parent48ed66e5cb97df911aaf2d45200b5f1113e8261d (diff)
make vlan configuration work with ifup/ifdown
Diffstat (limited to 'package/base-files/extra/etc/network/if-post-down.d/02-vlan')
-rwxr-xr-xpackage/base-files/extra/etc/network/if-post-down.d/02-vlan10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/base-files/extra/etc/network/if-post-down.d/02-vlan b/package/base-files/extra/etc/network/if-post-down.d/02-vlan
new file mode 100755
index 000000000..e448a7641
--- /dev/null
+++ b/package/base-files/extra/etc/network/if-post-down.d/02-vlan
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ -x /sbin/vconfig ] || exit 0
+
+[ -e /proc/net/vlan/$IFACE ] && (
+ ip link set down dev $IFACE
+ vconfig rem $IFACE
+)
+
+exit 0