disable overrideting wan ifname on sysupdate
This commit is contained in:
parent
8547bd4340
commit
45717c42e4
@ -5,7 +5,6 @@ local sysconfig = require 'gluon.sysconfig'
|
|||||||
|
|
||||||
|
|
||||||
uci:section('network', 'interface', 'wan', {
|
uci:section('network', 'interface', 'wan', {
|
||||||
ifname = sysconfig.wan_ifname,
|
|
||||||
type = 'bridge',
|
type = 'bridge',
|
||||||
igmp_snooping = true,
|
igmp_snooping = true,
|
||||||
multicast_querier = false,
|
multicast_querier = false,
|
||||||
@ -13,6 +12,10 @@ uci:section('network', 'interface', 'wan', {
|
|||||||
auto = true,
|
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
|
if not uci:get('network', 'wan', 'proto') then
|
||||||
uci:set('network', 'wan', 'proto', 'dhcp')
|
uci:set('network', 'wan', 'proto', 'dhcp')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user