mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
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>
This commit is contained in:
parent
1e93ef8498
commit
7a6b2badfa
@ -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}/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user