From 80ba0d958dc96fb7aba26614f71325507fabd58a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 26 Jan 2025 21:10:53 +0100 Subject: [PATCH] unetd: fix interface teardown Pass the correct device name in the network_del ubus call Signed-off-by: Felix Fietkau --- package/network/services/unetd/files/unetd.sh | 3 +-- 1 file changed, 1 insertion(+), 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" -- 2.30.2