Browse Source

(2/6) bcm57xx: netconfig

Update the netconfig script to support boardtype 0x478.  I've tested this
on the wrt350n, hopefully it will match the 600n as well.

Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu>

SVN-Revision: 11467
Felix Fietkau 17 years ago
parent
commit
f9ad520e37
1 changed files with 5 additions and 0 deletions
  1. 5 0
      target/linux/brcm-2.4/base-files/etc/init.d/netconfig

+ 5 - 0
target/linux/brcm-2.4/base-files/etc/init.d/netconfig

@@ -102,6 +102,11 @@ start() {
 				}
 			}
 		}
+		if (nvram["boardtype"] == "0x478") {
+			# generic broadcom 4785 processor with 5397 switch?
+			c["vlan0ports"] = "1 2 3 4 8*"
+			c["vlan1ports"] = "0 8"
+		}
 
 		# WAP54G
 		if ((nvram["boardnum"] == "2") || \