Added vlan enabling as suggested in #204, closes #204
authorFlorian Fainelli <florian@openwrt.org>
Thu, 12 Jan 2006 10:56:09 +0000 (10:56 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 12 Jan 2006 10:56:09 +0000 (10:56 +0000)
SVN-Revision: 2931

openwrt/package/base-files/default/etc/hotplug.d/net/10-net

index b63eba090b12c12299f16d8c6868cf5fc745db22..9a4c4500389cb0521528fca50cf566b039367624 100644 (file)
@@ -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
 }