[openwrt/openwrt] unetd: cli: bypass override directory
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 17 05:19:39 PDT 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5f54aa602e9a4ef0f8fd0320d3408685cebb5de3
commit 5f54aa602e9a4ef0f8fd0320d3408685cebb5de3
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Feb 28 17:21:10 2025 +0100
unetd: cli: bypass override directory
Useful for better integration with uconfig, which overrides uci with generated files
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/network/services/unetd/files/unet.uc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/network/services/unetd/files/unet.uc b/package/network/services/unetd/files/unet.uc
index 06437c282c..d9533d3fa3 100644
--- a/package/network/services/unetd/files/unet.uc
+++ b/package/network/services/unetd/files/unet.uc
@@ -153,7 +153,7 @@ function network_sign_data(ctx, name, network, pw_file, upload)
function network_create_uci(model, name, iface)
{
- let cur = uci.cursor();
+ let cur = uci.cursor(null, null, "");
cur.set("network", name, "interface");
for (let key, val in iface)
cur.set("network", name, key, val);
@@ -360,7 +360,7 @@ function network_create(ctx, argv, named) {
function network_delete(ctx, argv) {
let name = argv[0];
- let cur = uci.cursor();
+ let cur = uci.cursor(null, null, "");
if (!cur.delete("network", name))
return ctx.command_failed("Command failed");
@@ -378,7 +378,7 @@ function network_iface_save(ctx)
if (!netdata.iface_changed)
return;
- let cur = uci.cursor();
+ let cur = uci.cursor(null, null, "");
let iface_orig = cur.get_all("network", network);
for (let name, val in netdata.iface) {
if (iface_orig[name] == val)
More information about the lede-commits
mailing list