aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-01-08 09:02:30 +0100
committerHans Dedecker <dedeckeh@gmail.com>2018-01-10 21:38:55 +0100
commit377c4a68fee9cc2c4293cf39eb525978ddafa227 (patch)
tree50cb262ef6ee8d3c45801a990478125ffbc0b3b9
parentfe920d01bb7a4bb57f7d5cab15d4ee8abc5211d7 (diff)
downloadupstream-377c4a68fee9cc2c4293cf39eb525978ddafa227.tar.gz
upstream-377c4a68fee9cc2c4293cf39eb525978ddafa227.tar.bz2
upstream-377c4a68fee9cc2c4293cf39eb525978ddafa227.zip
omcproxy: silence fw3 warnings
Silence fw3 warnings in omcproxy init script in case fw3 is not enabled Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--package/network/services/omcproxy/Makefile2
-rw-r--r--package/network/services/omcproxy/files/omcproxy.init4
2 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/omcproxy/Makefile b/package/network/services/omcproxy/Makefile
index 473e968843..28de833a1c 100644
--- a/package/network/services/omcproxy/Makefile
+++ b/package/network/services/omcproxy/Makefile
@@ -8,7 +8,7 @@
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
diff --git a/package/network/services/omcproxy/files/omcproxy.init b/package/network/services/omcproxy/files/omcproxy.init
index a129792087..970b3a128e 100644
--- a/package/network/services/omcproxy/files/omcproxy.init
+++ b/package/network/services/omcproxy/files/omcproxy.init
@@ -51,7 +51,7 @@ omcproxy_add_firewall() {
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 ""
@@ -77,7 +77,7 @@ omcproxy_add_firewall() {
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 ""