disable overrideting wan ifname on sysupdate

This commit is contained in:
Parabol1337 2020-10-16 16:53:16 +02:00 committed by GitHub
parent 8547bd4340
commit 45717c42e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@ local sysconfig = require 'gluon.sysconfig'
uci:section('network', 'interface', 'wan', {
ifname = sysconfig.wan_ifname,
type = 'bridge',
igmp_snooping = true,
multicast_querier = false,
@ -13,6 +12,10 @@ uci:section('network', 'interface', 'wan', {
auto = true,
})
if not uci:get('network', 'wan', 'ifname') then
uci:set('network', 'wan', 'ifname', sysconfig.wan_ifname)
end
if not uci:get('network', 'wan', 'proto') then
uci:set('network', 'wan', 'proto', 'dhcp')
end