gluon-setup-mode: use is_outdoor_device() for setup_ifname selection
On PoE-powered devices, we usually want to use WAN for the setup mode. As all outdoor devices are PoE-powered, we can reuse this function. This switches the setup mode interface for new installations / after config reset on a few devices that were missing in this list before.
This commit is contained in:
parent
0dd9a3e07c
commit
e9687d7ef1
@ -8,18 +8,14 @@ if sysconfig.setup_ifname then
|
|||||||
os.exit(0)
|
os.exit(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if platform.match('ar71xx', 'generic', {
|
if platform.is_outdoor_device() or
|
||||||
'cpe210',
|
platform.match('ar71xx', 'generic', {
|
||||||
'cpe510',
|
'airgateway',
|
||||||
'wbs210',
|
'uap-pro',
|
||||||
'wbs510',
|
'unifiac-pro'
|
||||||
'airgateway',
|
}) or
|
||||||
'nanostation-m',
|
platform.match('ar71xx', 'mikrotik')
|
||||||
'nanostation-m-xw',
|
then
|
||||||
'unifi-outdoor-plus',
|
|
||||||
'uap-pro',
|
|
||||||
'unifiac-pro'
|
|
||||||
}) or platform.match('ar71xx', 'mikrotik') 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