From bfec08546bd348ad9e425eb42ffe75e7565f999b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 17 Jul 2021 23:24:01 +0200 Subject: [PATCH] gluon-core: use uci:delete_all() instead of foreach()+delete() (#2273) --- package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces index afded6f0..d2814968 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -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')