mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-12 07:24:22 +00:00
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)
This commit is contained in:
parent
d30773abe8
commit
a1ee311f59
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user