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
1 changed files with 1 additions and 4 deletions

View File

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