1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2010 OpenWrt.org
7 # igmpproxy supports both a debug mode and verbosity, which are very useful
8 # when something isn't working.
10 # Debug mode will print everything to stdout instead of syslog. Generally
11 # verbosity should NOT be set as it will quickly fill your syslog.
13 # Put any debug or verbosity options into IGMP_OPTS
16 # IGMP_OPTS="-d -v -v" - debug mode and very verbose, this will land in
17 # stdout and not in syslog
18 # IGMP_OPTS="-v" - be verbose, this will write aditional information to syslog
21 IGMP_BIN="/usr/sbin/igmpproxy"
22 IGMP_CNF="/etc/igmpproxy.conf"
23 PID_F="/var/run/igmpproxy.pid"
26 echo "Starting igmpproxy"
27 start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m -- $IGMP_OPTS $IGMP_CNF
31 echo "Stopping igmpporxy"
32 start-stop-daemon -K -x $IGMP_BIN -p $PID_F -q