X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6933f718b48f15c09cbff9fdbb52504ac8592eb2..0753eb7920a2d6dc5a038b0df0dcd6d07aeec56e:/target/linux/brcm-2.4/base-files/etc/init.d/netconfig diff --git a/target/linux/brcm-2.4/base-files/etc/init.d/netconfig b/target/linux/brcm-2.4/base-files/etc/init.d/netconfig index f2d4c5293..4cc23d233 100755 --- a/target/linux/brcm-2.4/base-files/etc/init.d/netconfig +++ b/target/linux/brcm-2.4/base-files/etc/init.d/netconfig @@ -57,6 +57,10 @@ start() { c["wan_ifname"] = "" c["lan_ifname"] = "eth1" } + if (model == "ASUS WL-500g") { + c["wan_ifname"] = "eth1" + c["lan_ifname"] = "eth0" + } if (nvram["boardtype"] == "bcm94710r4") { # Toshiba WRC-1000 c["lan_ifname"] = "eth0" @@ -97,6 +101,17 @@ start() { c["wan_ifname"]="" } + # ASUS WL-700gE + # These are actually same as defaults above. For some reason this script applies + # Generic BCM94704 settings instead so we revert to proper settings here. + # Hopefully someone will fix this properly soon. + if (model == "ASUS WL-700gE") { + c["lan_ifname"]="eth0.0" + c["wan_ifname"]="eth0.1" + c["vlan0ports"]="1 2 3 4 5*" + c["vlan1ports"]="0 5" + } + print "#### VLAN configuration " print "config switch eth0" p("vlan0", "vlan0ports")