diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-12-12 14:52:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-12 14:52:29 +0000 |
commit | 8afce572b7849c040812892eec2a8cd0d1e34b4c (patch) | |
tree | c9a894ff987ffa5490af764217c340616a92a2c7 /package | |
parent | f48b7aa6e48bb649846f78f9e6e44ac71f63ab9b (diff) | |
download | upstream-8afce572b7849c040812892eec2a8cd0d1e34b4c.tar.gz upstream-8afce572b7849c040812892eec2a8cd0d1e34b4c.tar.bz2 upstream-8afce572b7849c040812892eec2a8cd0d1e34b4c.zip |
igmpproxy: do not attempt to ifstatus error messages as json
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43660
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/igmpproxy/files/igmpproxy.init | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/igmpproxy/files/igmpproxy.init b/package/network/services/igmpproxy/files/igmpproxy.init index dd2e430b51..3ff8f19dad 100644 --- a/package/network/services/igmpproxy/files/igmpproxy.init +++ b/package/network/services/igmpproxy/files/igmpproxy.init @@ -39,7 +39,10 @@ igmp_add_phyint() { config_get direction $1 direction config_get altnets $1 altnet - json_load "$(ifstatus $network)" + local status="$(ubus -S call "network.interface.$network" status)" + [ -n "$status" ] || return + + json_load "$status" json_get_var device l3_device json_get_var up up |