Skip to content
Snippets Groups Projects
Unverified Commit 5ec8676b authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

gluon-core: delete all network device sections (#2263)


Delete all default network device sections upon first boot.

Only LAN & WAN networks are defined at this point. We are using the
legacy way of definiting bridges via the interface sections ifname
option.

The prior filtering was based upon a single device and didn't take into
consideration that DSA interface names can be named arbitrarily.

Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
parent 73b01284
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,7 @@ 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
-- Delete all default OpenWrt network device sections.
uci:delete('network', dev['.name'])
end)
......
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