From: nbd Date: Fri, 12 Dec 2014 14:52:29 +0000 (+0000) Subject: igmpproxy: do not attempt to ifstatus error messages as json X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=890a4cf13bed4584d2bd29ab19a97ee18491e6e8;p=openwrt.git igmpproxy: do not attempt to ifstatus error messages as json Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43660 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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