gluon-core: remove default bridge devices
This commit is contained in:
parent
a02270651c
commit
38a11eaca8
@ -73,4 +73,11 @@ end
|
|||||||
uci:delete('network', 'lan')
|
uci:delete('network', 'lan')
|
||||||
uci:delete('network', 'wan')
|
uci:delete('network', 'wan')
|
||||||
|
|
||||||
|
uci:foreach('network', 'device', function(dev)
|
||||||
|
if dev['type'] ~= 'bridge' then return end
|
||||||
|
if dev['ifname'] ~= 'lan' and dev['ifname'] ~= 'wan' then return end
|
||||||
|
|
||||||
|
uci:delete('network', dev['.name'])
|
||||||
|
end)
|
||||||
|
|
||||||
uci:save('network')
|
uci:save('network')
|
||||||
|
Loading…
Reference in New Issue
Block a user