diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces index 9d1b84c8..41e2150b 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -29,8 +29,8 @@ local function iface_exists(ifaces) end -local lan_ifname = iface_exists((network_data.lan or {}).ifname) -local wan_ifname = iface_exists((network_data.wan or {}).ifname) +local lan_ifname = iface_exists((network_data.lan or {}).device) +local wan_ifname = iface_exists((network_data.wan or {}).device) if platform.match('ar71xx', 'generic', { 'cpe210',