mwan3: Fix json_load fails with some data

Sometimes the return value of `ubus -S call network.interface.wan status`
cause `json_load` to return `Failed to parse message data` error.

To avoid this, the JSON data always should be quoted with double quotes.

Signed-off-by: Evren Yurtesen <eyurtese@abo.fi>
Removed quoatation marks from commit heading
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 94e0c78826)
This commit is contained in:
yurtesen 2019-11-12 17:53:51 +02:00 committed by Florian Eckert
parent 6f81894d9e
commit baacda1b4a
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mwan3
PKG_VERSION:=2.6.18
PKG_VERSION:=2.6.18-1
PKG_RELEASE:=1
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
PKG_LICENSE:=GPLv2

View File

@ -61,7 +61,7 @@ ifup()
exit 0
}
json_load $(ubus -S call network.interface.$1 status)
json_load "$(ubus -S call network.interface.$1 status)"
json_get_vars up l3_device
config_get enabled "$1" enabled 0