mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-07 03:29:36 +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>
This commit is contained in:
parent
22d1e6cd26
commit
80ba0d958d
@ -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