aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Tunin <hanipouspilot@gmail.com>2018-07-28 17:06:28 +0300
committerJo-Philipp Wich <jo@mein.io>2018-12-18 10:13:37 +0100
commitde3e415a2e95635d3aa13381a0686e3a66b01a16 (patch)
tree93a1db6e401445a48aca6e7a82edaff1c28c8269
parent81541d9159c988c068d7ba42bde75dcde5775312 (diff)
downloadupstream-de3e415a2e95635d3aa13381a0686e3a66b01a16.tar.gz
upstream-de3e415a2e95635d3aa13381a0686e3a66b01a16.tar.bz2
upstream-de3e415a2e95635d3aa13381a0686e3a66b01a16.zip
igmpproxy: add a silent logging option
[0-3](none, minimal[default], more, maximum) It is not 100% backward compatible, because now 0 disables logging Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com> (backported from 7a6b2badfa56cfd833d64f113398198f71fd896e)
-rw-r--r--package/network/services/igmpproxy/Makefile2
-rw-r--r--package/network/services/igmpproxy/files/igmpproxy.config2
-rw-r--r--package/network/services/igmpproxy/files/igmpproxy.init7
3 files changed, 6 insertions, 5 deletions
diff --git a/package/network/services/igmpproxy/Makefile b/package/network/services/igmpproxy/Makefile
index 6ac4172c84..d06402a267 100644
--- a/package/network/services/igmpproxy/Makefile
+++ b/package/network/services/igmpproxy/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=igmpproxy
PKG_VERSION:=0.2.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/pali/igmpproxy/releases/download/${PKG_VERSION}/
diff --git a/package/network/services/igmpproxy/files/igmpproxy.config b/package/network/services/igmpproxy/files/igmpproxy.config
index 6230f8aa1d..c85ffa3f52 100644
--- a/package/network/services/igmpproxy/files/igmpproxy.config
+++ b/package/network/services/igmpproxy/files/igmpproxy.config
@@ -1,6 +1,6 @@
config igmpproxy
option quickleave 1
-# option verbose [0-2]
+# option verbose [0-3](none, minimal[default], more, maximum)
config phyint
option network wan
diff --git a/package/network/services/igmpproxy/files/igmpproxy.init b/package/network/services/igmpproxy/files/igmpproxy.init
index 0c30895ad6..37fe62ad1b 100644
--- a/package/network/services/igmpproxy/files/igmpproxy.init
+++ b/package/network/services/igmpproxy/files/igmpproxy.init
@@ -9,10 +9,11 @@ CONFIGFILE=/var/etc/igmpproxy.conf
igmp_header() {
local quickleave verbose
config_get_bool quickleave "$1" quickleave 0
- config_get verbose "$1" verbose 0
+ config_get verbose "$1" verbose 1
- [ $verbose = "1" ] && logopts="-v"
- [ $verbose = "2" ] && logopts="-v -v"
+ [ $verbose = "0" ] && logopts="-d"
+ [ $verbose = "2" ] && logopts="-v"
+ [ $verbose = "3" ] && logopts="-v -v"
mkdir -p /var/etc
rm -f /var/etc/igmpproxy.conf