Author: nbd
Date: 2014-12-12 15:52:29 +0100 (Fri, 12 Dec 2014)
New Revision: 43660

Modified:
   trunk/package/network/services/igmpproxy/files/igmpproxy.init
Log:
igmpproxy: do not attempt to ifstatus error messages as json

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/network/services/igmpproxy/files/igmpproxy.init
===================================================================
--- trunk/package/network/services/igmpproxy/files/igmpproxy.init       
2014-12-12 14:52:24 UTC (rev 43659)
+++ trunk/package/network/services/igmpproxy/files/igmpproxy.init       
2014-12-12 14:52:29 UTC (rev 43660)
@@ -39,7 +39,10 @@
        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
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to