gluon-setup-mode: remove obsolete sysconfig.config_ifname migration

config_ifname was renamed to setup_ifname in Gluon v2015.1.
This commit is contained in:
Matthias Schiffer 2020-05-07 00:35:45 +02:00
parent e9687d7ef1
commit 8807c76a34
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -16,10 +16,7 @@ if platform.is_outdoor_device() or
}) or
platform.match('ar71xx', 'mikrotik')
then
sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.wan_ifname or sysconfig.lan_ifname
sysconfig.setup_ifname = sysconfig.wan_ifname or sysconfig.lan_ifname
else
sysconfig.setup_ifname = sysconfig.config_ifname or sysconfig.lan_ifname or sysconfig.wan_ifname
sysconfig.setup_ifname = sysconfig.lan_ifname or sysconfig.wan_ifname
end
-- Remove the old sysconfig setting
sysconfig.config_ifname = nil