[openwrt/openwrt] unetd: fix interface teardown
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 26 12:21:11 PST 2025
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/a1ee311f59d5bd0838444afed7984d5757c5222b
commit a1ee311f59d5bd0838444afed7984d5757c5222b
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Jan 26 21:10:53 2025 +0100
unetd: fix interface teardown
Pass the correct device name in the network_del ubus call
Signed-off-by: Felix Fietkau <nbd at nbd.name>
(cherry picked from commit 80ba0d958dc96fb7aba26614f71325507fabd58a)
---
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"
More information about the lede-commits
mailing list