CPE510-specific config (switch WAN and LAN, config mode on WAN)

This commit is contained in:
Matthias Schiffer 2014-11-21 04:19:31 +01:00
parent eed0315cd2
commit 9663e29b22
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ local lan_ifname = uci:get('network', 'lan', 'ifname')
local wan_ifname = uci:get('network', 'wan', 'ifname')
if platform.match('ar71xx', 'generic', {'nanostation-m'}) then
if platform.match('ar71xx', 'generic', {'nanostation-m', 'cpe510'}) then
lan_ifname, wan_ifname = wan_ifname, lan_ifname
end

View File

@ -8,7 +8,7 @@ if sysconfig.setup_ifname then
os.exit(0)
end
if platform.match('ar71xx', 'generic', {'nanostation-m'}) then
if platform.match('ar71xx', 'generic', {'nanostation-m', 'cpe510'}) then
sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.wan_ifname or sysconfig.lan_ifname
else
sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.lan_ifname or sysconfig.wan_ifname