add netconfig fix for wl-500g premium
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 24 Oct 2006 18:51:10 +0000 (18:51 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 24 Oct 2006 18:51:10 +0000 (18:51 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5287 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/brcm-2.4/etc/init.d/netconfig
package/base-files/brcm-2.6/etc/init.d/netconfig

index a7cc322..fe39f50 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
index a7cc322..fe39f50 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
This page took 0.029073 seconds and 4 git commands to generate.