[packages] igmpproxy: fix initscript (closes: #7577), bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22268 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8d2155a13b
commit
88e4c08533
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=igmpproxy
|
PKG_NAME:=igmpproxy
|
||||||
PKG_VERSION:=0.1
|
PKG_VERSION:=0.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/igmpproxy
|
PKG_SOURCE_URL:=@SF/igmpproxy
|
||||||
|
@ -1,42 +1,33 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2010 OpenWrt.org
|
||||||
|
|
||||||
START=99
|
START=99
|
||||||
DEBUG=0
|
STOP=10
|
||||||
|
|
||||||
|
# igmpproxy supports both a debug mode and verbosity, which are very useful
|
||||||
|
# when something isn't working.
|
||||||
#
|
#
|
||||||
# The debug flag should generally be set to 0
|
# Debug mode will print everything to stdout instead of syslog. Generally
|
||||||
# otherwise igmpproxy will spam your syslog.
|
# verbosity should NOT be set as it will quickly fill your syslog.
|
||||||
# However, this is very useful for debugging
|
|
||||||
# a non-functional configuration file.
|
|
||||||
#
|
#
|
||||||
# DEBUG=0 = NO DEBUG!!!
|
# Put any debug or verbosity options into IGMP_OPTS
|
||||||
# DEBUG=1 -d
|
#
|
||||||
# DEBUG=2 -v
|
# Examples:
|
||||||
# DEBUG=3 -v -v
|
# IGMP_OPTS="-d -v -v" - debug mode and very verbose, this will land in
|
||||||
LOGFILE="/root/igmpproxy.log"
|
# stdout and not in syslog
|
||||||
|
# IGMP_OPTS="-v" - be verbose, this will write aditional information to syslog
|
||||||
|
|
||||||
|
IGMP_OPTS=""
|
||||||
|
IGMP_BIN="/usr/sbin/igmpproxy"
|
||||||
|
IGMP_CNF="/etc/igmpproxy.conf"
|
||||||
|
PID_F="/var/run/igmpproxy.pid"
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n "Starting igmpproxy"
|
echo "Starting igmpproxy"
|
||||||
# Normal Mode
|
start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m -- $IGMP_OPTS $IGMP_CNF
|
||||||
if [ $DEBUG -eq 0 ]; then
|
|
||||||
echo " in normal mode"
|
|
||||||
/usr/sbin/igmpproxy /etc/igmpproxy.conf &
|
|
||||||
# Debug Mode
|
|
||||||
elif [ $DEBUG -eq 1 ]; then
|
|
||||||
echo " in debug mode"
|
|
||||||
/usr/sbin/igmpproxy -d /etc/igmpproxy.conf &
|
|
||||||
# Verbose Mode
|
|
||||||
elif [ $DEBUG -eq 2 ]; then
|
|
||||||
echo " in verbose mode"
|
|
||||||
/usr/sbin/igmpproxy -v /etc/igmpproxy.conf &
|
|
||||||
# Very Verbose Mode
|
|
||||||
elif [ $DEBUG -eq 3 ]; then
|
|
||||||
echo " in very verbose mode"
|
|
||||||
/usr/sbin/igmpproxy -v -v /etc/igmpproxy.conf &
|
|
||||||
else
|
|
||||||
echo " unkown debug mode, must be 0, 1, 2 or 3"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo "Killing igmpporxy"
|
echo "Stopping igmpporxy"
|
||||||
killall igmpproxy
|
start-stop-daemon -K -x $IGMP_BIN -p $PID_F -q
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user