summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-01-26 20:10:53 +0000
committerFelix Fietkau2025-01-26 20:21:00 +0000
commita1ee311f59d5bd0838444afed7984d5757c5222b (patch)
tree8356d1a9ca9b37b85350ebcac7fa3b2f509263ee
parentd30773abe8cc333137a964ffedf878cc425ac9ed (diff)
downloadopenwrt-a1ee311f59d5bd0838444afed7984d5757c5222b.tar.gz
unetd: fix interface teardown
Pass the correct device name in the network_del ubus call Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 80ba0d958dc96fb7aba26614f71325507fabd58a)
-rw-r--r--package/network/services/unetd/files/unetd.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/network/services/unetd/files/unetd.sh b/package/network/services/unetd/files/unetd.sh
index 2f0f0c478c..2117eab391 100644
--- a/package/network/services/unetd/files/unetd.sh
+++ b/package/network/services/unetd/files/unetd.sh
@@ -82,11 +82,10 @@ proto_unet_setup() {
proto_unet_teardown() {
local config="$1"
- local iface="$2"
local device
json_get_vars device
- device="${device:-$iface}"
+ device="${device:-$config}"
json_init
json_add_string name "$device"