diff options
| author | Felix Fietkau | 2025-01-26 20:10:53 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-01-26 20:19:37 +0000 |
| commit | 80ba0d958dc96fb7aba26614f71325507fabd58a (patch) | |
| tree | 42ccdb4dce0cf0826e6e03534bfed1e48110332d | |
| parent | 22d1e6cd26ca6765429de9baf5c23946291d7e8b (diff) | |
| download | openwrt-80ba0d958dc96fb7aba26614f71325507fabd58a.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>
| -rw-r--r-- | package/network/services/unetd/files/unetd.sh | 3 |
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" |