gluon-core: remove default bridge devices

This commit is contained in:
David Bauer 2021-05-21 15:42:02 +02:00
parent a02270651c
commit 38a11eaca8

View File

@ -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')