gluon-core, gluon-setup-mode: fix LAN and WAN on nanostation-m-xw
This commit is contained in:
parent
bf4b3a265f
commit
78b43b1dd6
@ -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', 'cpe510'}) then
|
if platform.match('ar71xx', 'generic', {'cpe510', 'nanostation-m', 'nanostation-m-xw'}) 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
|
|||||||
os.exit(0)
|
os.exit(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if platform.match('ar71xx', 'generic', {'nanostation-m', 'cpe510'}) then
|
if platform.match('ar71xx', 'generic', {'cpe510', 'nanostation-m', 'nanostation-m-xw'}) 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
|
||||||
|
Loading…
Reference in New Issue
Block a user