gluon-core: use uci:delete_all() instead of foreach()+delete() (#2273)
This commit is contained in:
parent
f01c62e594
commit
bfec08546b
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user