summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-24 18:51:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-24 18:51:10 +0000
commit35176fec0892342171cd6272958d0b011e43fe60 (patch)
tree4ef4e8bd151bb5b9f956bd4bc09e5be0affd3b13 /package
parent010faa438177e9ce6e96cde78f907411688dffa7 (diff)
downloadmtk-20170518-35176fec0892342171cd6272958d0b011e43fe60.zip
mtk-20170518-35176fec0892342171cd6272958d0b011e43fe60.tar.gz
mtk-20170518-35176fec0892342171cd6272958d0b011e43fe60.tar.bz2
add netconfig fix for wl-500g premium
SVN-Revision: 5287
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/brcm-2.4/etc/init.d/netconfig9
-rwxr-xr-xpackage/base-files/brcm-2.6/etc/init.d/netconfig9
2 files changed, 14 insertions, 4 deletions
diff --git a/package/base-files/brcm-2.4/etc/init.d/netconfig b/package/base-files/brcm-2.4/etc/init.d/netconfig
index a7cc322..fe39f50 100755
--- a/package/base-files/brcm-2.4/etc/init.d/netconfig
+++ b/package/base-files/brcm-2.4/etc/init.d/netconfig
@@ -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
diff --git a/package/base-files/brcm-2.6/etc/init.d/netconfig b/package/base-files/brcm-2.6/etc/init.d/netconfig
index a7cc322..fe39f50 100755
--- a/package/base-files/brcm-2.6/etc/init.d/netconfig
+++ b/package/base-files/brcm-2.6/etc/init.d/netconfig
@@ -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