From: Felix Fietkau Date: Sun, 26 Jan 2025 20:10:53 +0000 (+0100) Subject: unetd: fix interface teardown X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=80ba0d958dc96fb7aba26614f71325507fabd58a;p=openwrt%2Fopenwrt.git unetd: fix interface teardown Pass the correct device name in the network_del ubus call Signed-off-by: Felix Fietkau --- 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"