gluon-core: use uci:delete_all() instead of foreach()+delete() (#2273)

This commit is contained in:
Matthias Schiffer 2021-07-17 23:24:01 +02:00 committed by GitHub
parent f01c62e594
commit bfec08546b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,9 +78,6 @@ end
uci:delete('network', 'lan') uci:delete('network', 'lan')
uci:delete('network', 'wan') uci:delete('network', 'wan')
uci:foreach('network', 'device', function(dev) uci:delete_all('network', 'device')
-- Delete all default OpenWrt network device sections.
uci:delete('network', dev['.name'])
end)
uci:save('network') uci:save('network')