Skip to content
Snippets Groups Projects
Commit 9dd4f52b authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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

parent 104c92df
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ local lan_ifname = uci:get('network', 'lan', 'ifname') ...@@ -25,7 +25,7 @@ local lan_ifname = uci:get('network', 'lan', 'ifname')
local wan_ifname = uci:get('network', 'wan', '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 lan_ifname, wan_ifname = wan_ifname, lan_ifname
end end
......
...@@ -8,7 +8,7 @@ if sysconfig.setup_ifname then ...@@ -8,7 +8,7 @@ if sysconfig.setup_ifname then
os.exit(0) os.exit(0)
end 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 sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.wan_ifname or sysconfig.lan_ifname
else else
sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.lan_ifname or sysconfig.wan_ifname sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.lan_ifname or sysconfig.wan_ifname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment