summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc/hotplug.d
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-01-12 10:56:09 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-01-12 10:56:09 +0000
commit86534732ef9b6b8e485e064a56620864150f7efb (patch)
tree3515904c4d68081b5d6ec73ca4b8899d68a36b83 /openwrt/package/base-files/default/etc/hotplug.d
parent6638e398004c94f69ea6be2783f9e9c90b7fd6be (diff)
downloadmtk-20170518-86534732ef9b6b8e485e064a56620864150f7efb.zip
mtk-20170518-86534732ef9b6b8e485e064a56620864150f7efb.tar.gz
mtk-20170518-86534732ef9b6b8e485e064a56620864150f7efb.tar.bz2
Added vlan enabling as suggested in #204, closes #204
SVN-Revision: 2931
Diffstat (limited to 'openwrt/package/base-files/default/etc/hotplug.d')
-rw-r--r--openwrt/package/base-files/default/etc/hotplug.d/net/10-net1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/etc/hotplug.d/net/10-net b/openwrt/package/base-files/default/etc/hotplug.d/net/10-net
index b63eba0..9a4c450 100644
--- a/openwrt/package/base-files/default/etc/hotplug.d/net/10-net
+++ b/openwrt/package/base-files/default/etc/hotplug.d/net/10-net
@@ -22,6 +22,7 @@ setup_eth()
vports="$(nvram get vlan${vlan}ports)"
[ \! -z "$vports" -a -d "/proc/switch/$INTERFACE" ] && \
echo "$vports" > "/proc/switch/$INTERFACE/vlan/$vlan/ports"
+ echo "1" > "/proc/switch/$INTERFACE/enable_vlan"
}
done
}