diff options
| author | Felix Fietkau | 2025-02-28 16:21:10 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-03-17 12:16:08 +0000 |
| commit | 5f54aa602e9a4ef0f8fd0320d3408685cebb5de3 (patch) | |
| tree | 3a337c691e16578af8c76e9c91b1d148a259d619 | |
| parent | 960e1c4c247abc264124b8eeabde2424eef476f7 (diff) | |
| download | openwrt-5f54aa602e9a4ef0f8fd0320d3408685cebb5de3.tar.gz | |
unetd: cli: bypass override directory
Useful for better integration with uconfig, which overrides uci with generated files
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | package/network/services/unetd/files/unet.uc | 6 |
1 files 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) |