From: Felix Fietkau Date: Tue, 24 Oct 2006 18:51:10 +0000 (+0000) Subject: add netconfig fix for wl-500g premium X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35176fec0892342171cd6272958d0b011e43fe60;p=librecmc%2Flibrecmc.git add netconfig fix for wl-500g premium SVN-Revision: 5287 --- 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 a7cc322d87..fe39f50516 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 a7cc322d87..fe39f50516 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