Changeset 29083


Ignore:
Timestamp:
2011-11-13T23:16:32+01:00 (6 years ago)
Author:
nico
Message:

packages/igmpproxy: use new service functions, usr br-lan/br-wan in sample config file

Location:
packages/net/igmpproxy
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/igmpproxy/Makefile

    r26079 r29083  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=igmpproxy 
    1111PKG_VERSION:=0.1 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/igmpproxy/files/igmpproxy.conf

    r6500 r29083  
    2828## Configuration for eth0 (Upstream Interface) 
    2929##------------------------------------------------------ 
    30 phyint vlan0 upstream  ratelimit 0  threshold 1 
     30phyint br-wan upstream  ratelimit 0  threshold 1 
    3131        altnet 192.168.1.0/24 
    3232 
     
    3535## Configuration for eth1 (Downstream Interface) 
    3636##------------------------------------------------------ 
    37 phyint vlan1 downstream  ratelimit 0  threshold 1 
     37phyint br-lan downstream  ratelimit 0  threshold 1 
    3838 
    3939 
  • packages/net/igmpproxy/files/igmpproxy.init

    r22268 r29083  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2010 OpenWrt.org 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    33 
    44START=99 
    55STOP=10 
     6 
     7SERVICE_DAEMONIZE=1 
     8SERVICE_WRITE_PID=1 
    69 
    710# igmpproxy supports both a debug mode and verbosity, which are very useful 
     
    1417# 
    1518# Examples: 
    16 # IGMP_OPTS="-d -v -v" - debug mode and very verbose, this will land in 
     19# OPTIONS="-d -v -v" - debug mode and very verbose, this will land in 
    1720#                        stdout and not in syslog 
    18 # IGMP_OPTS="-v" - be verbose, this will write aditional information to syslog 
     21# OPTIONS="-v" - be verbose, this will write aditional information to syslog 
    1922 
    20 IGMP_OPTS="" 
    21 IGMP_BIN="/usr/sbin/igmpproxy" 
    22 IGMP_CNF="/etc/igmpproxy.conf" 
    23 PID_F="/var/run/igmpproxy.pid" 
     23OPTIONS="" 
    2424 
    2525start() { 
    26         echo "Starting igmpproxy" 
    27         start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m -- $IGMP_OPTS $IGMP_CNF 
     26        service_start /usr/sbin/igmpproxy $OPTIONS /etc/igmpproxy.conf 
    2827} 
    2928 
    3029stop() { 
    31         echo "Stopping igmpporxy" 
    32         start-stop-daemon -K -x $IGMP_BIN -p $PID_F -q 
     30        service_stop /usr/sbin/igmpproxy 
    3331} 
Note: See TracChangeset for help on using the changeset viewer.