add netconfig fix for wl-500g premium
[openwrt/staging/yousong.git] / package / base-files / brcm-2.6 / etc / init.d / netconfig
index a7cc322d877a90d4a8dc2cd03f806e815abbf6b1..fe39f5051625fb11dca7df464cf35fdb5338c75a 100755 (executable)
@@ -51,8 +51,13 @@ start() {
                        c["vlan1ports"] = "4 5"
                }
                if ((nvram["boardtype"] == "0x0467") || (nvram["boardtype"] == "0x042f")) {
-                       c["vlan0ports"] = "0 1 2 3 5*"
-                       c["vlan1ports"] = "4 5"
+                       if (nvram["boardnum"] == "45") {
+                               c["vlan0ports"] = "1 2 3 4 5*"
+                               c["vlan1ports"] = "0 5"
+                       } else {
+                               c["vlan0ports"] = "0 1 2 3 5*"
+                               c["vlan1ports"] = "4 5"
+                       }
                }
        
                # WAP54G