packages/igmpproxy: use new service functions, usr br-lan/br-wan in sample config file
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29083 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
26b1491d87
commit
b3799c86e2
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2010 OpenWrt.org
|
# Copyright (C) 2006-2011 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:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
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
|
||||||
|
@ -27,14 +27,14 @@ quickleave
|
|||||||
##------------------------------------------------------
|
##------------------------------------------------------
|
||||||
## Configuration for eth0 (Upstream Interface)
|
## Configuration for eth0 (Upstream Interface)
|
||||||
##------------------------------------------------------
|
##------------------------------------------------------
|
||||||
phyint vlan0 upstream ratelimit 0 threshold 1
|
phyint br-wan upstream ratelimit 0 threshold 1
|
||||||
altnet 192.168.1.0/24
|
altnet 192.168.1.0/24
|
||||||
|
|
||||||
|
|
||||||
##------------------------------------------------------
|
##------------------------------------------------------
|
||||||
## Configuration for eth1 (Downstream Interface)
|
## Configuration for eth1 (Downstream Interface)
|
||||||
##------------------------------------------------------
|
##------------------------------------------------------
|
||||||
phyint vlan1 downstream ratelimit 0 threshold 1
|
phyint br-lan downstream ratelimit 0 threshold 1
|
||||||
|
|
||||||
|
|
||||||
##------------------------------------------------------
|
##------------------------------------------------------
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2010 OpenWrt.org
|
# Copyright (C) 2010-2011 OpenWrt.org
|
||||||
|
|
||||||
START=99
|
START=99
|
||||||
STOP=10
|
STOP=10
|
||||||
|
|
||||||
|
SERVICE_DAEMONIZE=1
|
||||||
|
SERVICE_WRITE_PID=1
|
||||||
|
|
||||||
# igmpproxy supports both a debug mode and verbosity, which are very useful
|
# igmpproxy supports both a debug mode and verbosity, which are very useful
|
||||||
# when something isn't working.
|
# when something isn't working.
|
||||||
#
|
#
|
||||||
@ -13,21 +16,16 @@ STOP=10
|
|||||||
# Put any debug or verbosity options into IGMP_OPTS
|
# Put any debug or verbosity options into IGMP_OPTS
|
||||||
#
|
#
|
||||||
# Examples:
|
# Examples:
|
||||||
# IGMP_OPTS="-d -v -v" - debug mode and very verbose, this will land in
|
# OPTIONS="-d -v -v" - debug mode and very verbose, this will land in
|
||||||
# stdout and not in syslog
|
# stdout and not in syslog
|
||||||
# IGMP_OPTS="-v" - be verbose, this will write aditional information to syslog
|
# OPTIONS="-v" - be verbose, this will write aditional information to syslog
|
||||||
|
|
||||||
IGMP_OPTS=""
|
OPTIONS=""
|
||||||
IGMP_BIN="/usr/sbin/igmpproxy"
|
|
||||||
IGMP_CNF="/etc/igmpproxy.conf"
|
|
||||||
PID_F="/var/run/igmpproxy.pid"
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo "Starting igmpproxy"
|
service_start /usr/sbin/igmpproxy $OPTIONS /etc/igmpproxy.conf
|
||||||
start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m -- $IGMP_OPTS $IGMP_CNF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo "Stopping igmpporxy"
|
service_stop /usr/sbin/igmpproxy
|
||||||
start-stop-daemon -K -x $IGMP_BIN -p $PID_F -q
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user