brcm47xx: configure vlan correctly on some recent devices.
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 13 Feb 2013 16:05:52 +0000 (16:05 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 13 Feb 2013 16:05:52 +0000 (16:05 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35587 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm47xx/base-files/etc/init.d/netconfig

index 303ab56..229beb9 100755 (executable)
@@ -166,7 +166,10 @@ start() {
                }
 
                # generic broadcom 4716 processor with 53115 switch
-               if (tolower(nvram["boardtype"]) == "0x04cf") {
+               if ((tolower(nvram["boardtype"]) == "0x04cf") || \
+                       (tolower(nvram["boardtype"]) == "0xf5b2") || \
+                       (tolower(nvram["boardtype"]) == "0xf52a") || \
+                       (tolower(nvram["boardtype"]) == "0xf52e")) {
                        c["vlan0ports"] = "1 2 3 4 8*"
                        c["vlan1ports"] = "0 8"
                }