aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-12-12 14:52:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-12-12 14:52:29 +0000
commitd76886a4bc2b56bf723d604047091041c8141cf7 (patch)
treeb29e5294009bbe12dccdaaf5235e839b8df04690 /package
parent6a219920115f9025854dfe10edcdb95c4b4e72a4 (diff)
downloadupstream-d76886a4bc2b56bf723d604047091041c8141cf7.tar.gz
upstream-d76886a4bc2b56bf723d604047091041c8141cf7.tar.bz2
upstream-d76886a4bc2b56bf723d604047091041c8141cf7.zip
igmpproxy: do not attempt to ifstatus error messages as json
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43660 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/network/services/igmpproxy/files/igmpproxy.init5
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