Silence fw3 warnings in omcproxy init script in case fw3 is not enabled
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=omcproxy
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE_URL:=https://github.com/sbyx/omcproxy.git
PKG_SOURCE_PROTO:=git
config_get uplink $1 uplink
config_get downlink $1 downlink
- upzone=$(fw3 network $uplink)
+ upzone=$(fw3 -q network $uplink 2>/dev/null)
[ -n "$upzone" ] || return 0
json_add_object ""
json_close_object
for network in $downlink; do
- downzone=$(fw3 network $network)
+ downzone=$(fw3 -q network $network 2>/dev/null)
[ -n "$downzone" ] || continue
json_add_object ""