brcm47xx: configure vlan correctly on some recent devices.
[librecmc/librecmc.git] / target / linux / brcm47xx / base-files / etc / init.d / netconfig
index 303ab569662cd08092c7fc863ce205eca3dceead..229beb900c473cdc15b7279132915a85ee77bb8f 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"
                }