From 8807c76a34b25db0f322c980fcbe42ef7304fdf3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 7 May 2020 00:35:45 +0200 Subject: [PATCH] gluon-setup-mode: remove obsolete sysconfig.config_ifname migration config_ifname was renamed to setup_ifname in Gluon v2015.1. --- .../luasrc/lib/gluon/upgrade/320-setup-ifname | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/320-setup-ifname b/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/320-setup-ifname index c4ef517c..b1c87623 100755 --- a/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/320-setup-ifname +++ b/package/gluon-setup-mode/luasrc/lib/gluon/upgrade/320-setup-ifname @@ -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