mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
6a21992011
commit
d76886a4bc
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user