add netconfig fix for wl-500g premium
[openwrt.git] / package / base-files / brcm-2.4 / etc / init.d / netconfig
index ca52ee7..fe39f50 100755 (executable)
@@ -41,13 +41,23 @@ start() {
                                c["wan_ifname"]=""
                        }
                }
+               if (nvram["boardtype"] == "bcm94710r4") {
+                       # Toshiba WRC-1000
+                       c["lan_ifname"] = "eth0"
+                       c["wan_ifname"] = "eth1"
+               }
                if (nvram["boardtype"] == "wgt634u") {
                        c["vlan0ports"] = "0 1 2 3 5*"
                        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.035261 seconds and 4 git commands to generate.