aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit6ca2243ea244b4bfeb36b1f39c46ce3705d62ebf (patch)
treecd82ebce68b60db297baa0cca6acfad5c1389058 /package/base-files
parent8ebed7bbe5e6ba4c9397d6befe8021bc88059881 (diff)
downloadupstream-6ca2243ea244b4bfeb36b1f39c46ce3705d62ebf.tar.gz
upstream-6ca2243ea244b4bfeb36b1f39c46ce3705d62ebf.tar.bz2
upstream-6ca2243ea244b4bfeb36b1f39c46ce3705d62ebf.zip
Added vlan enabling as suggested in #204, closes #204
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2931 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/default/etc/hotplug.d/net/10-net1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/default/etc/hotplug.d/net/10-net b/package/base-files/default/etc/hotplug.d/net/10-net
index b63eba090b..9a4c450038 100644
--- a/package/base-files/default/etc/hotplug.d/net/10-net
+++ b/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
}