gluon/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/320-setup-ifname
J. Burfeind 39c3c7adf3
ath79-generic: (re)add support for UniFi AP PRO (#2416)
Ubiquiti UniFi AP PRO

Gone due to
commit 45c84a1 ("ar71xx: drop target")
2022-03-26 11:11:32 +01:00

15 lines
365 B
Lua
Executable File

#!/usr/bin/lua
local platform = require 'gluon.platform'
local sysconfig = require 'gluon.sysconfig'
if platform.is_outdoor_device() or
platform.match('ath79', 'generic', {
'ubnt,unifi-ap-pro',
})
then
sysconfig.setup_ifname = sysconfig.single_ifname or sysconfig.wan_ifname
else
sysconfig.setup_ifname = sysconfig.single_ifname or sysconfig.lan_ifname
end