X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm47xx%2Fbase-files%2Fetc%2Finit.d%2Fnetconfig;h=229beb900c473cdc15b7279132915a85ee77bb8f;hb=3cefbe0036a99319fe7a8f19a80028704a013c88;hp=4de108a0c096d98bd4611e6e77ca6a993fddb61b;hpb=41f0999b88dbb00aa7193b23088c90fbef79e1b6;p=openwrt.git diff --git a/target/linux/brcm47xx/base-files/etc/init.d/netconfig b/target/linux/brcm47xx/base-files/etc/init.d/netconfig index 4de108a0c0..229beb900c 100755 --- a/target/linux/brcm47xx/base-files/etc/init.d/netconfig +++ b/target/linux/brcm47xx/base-files/etc/init.d/netconfig @@ -165,6 +165,15 @@ start() { c["vlan1ports"] = "0 8" } + # generic broadcom 4716 processor with 53115 switch + if ((tolower(nvram["boardtype"]) == "0x04cf") || \ + (tolower(nvram["boardtype"]) == "0xf5b2") || \ + (tolower(nvram["boardtype"]) == "0xf52a") || \ + (tolower(nvram["boardtype"]) == "0xf52e")) { + c["vlan0ports"] = "1 2 3 4 8*" + c["vlan1ports"] = "0 8" + } + # WAP54G if ((nvram["boardnum"] == "2") || \ (nvram["boardnum"] == "1024")) { @@ -189,8 +198,7 @@ start() { c["vlan0ports"]="1 2 3 4 5" c["vlan1ports"]="0 5" } - - if (model == "Motorola WR850G V2/V3") { + if ((model == "Motorola WR850G V2/V3") || (model == "Siemens SE505 V2")) { c["vlan0ports"]="0 1 2 3 5" c["vlan1ports"]="4 5" } @@ -211,7 +219,7 @@ start() { print "#### VLAN configuration " print "config switch eth0" print " option enable 1" - print "" + print "" vlan(0, "vlan0ports") vlan(1, "vlan1ports") }