Skip to content
Snippets Groups Projects
Commit 38a11eac authored by David Bauer's avatar David Bauer
Browse files

gluon-core: remove default bridge devices

parent a0227065
No related branches found
No related tags found
No related merge requests found
......@@ -73,4 +73,11 @@ end
uci:delete('network', 'lan')
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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment