packages/net/udpxy/files/udpxy.init
juhosg 7b4db05696 packages: udpxy: update to new version and add init script
This patch updates version to 1.0.21-2.

Signed-off-by: Nerijus Baliūnas <nerijus@users.sourceforge.net>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30583 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-16 11:58:33 +00:00

28 lines
469 B
Bash

#!/bin/sh /etc/rc.common
# To open multicast traffic, add the following rule at the end of
# /etc/config/firewall file:
#
# config 'rule'
# option 'target' 'ACCEPT'
# option '_name' 'multicast'
# option 'src' 'wan'
# option 'proto' 'all'
# option 'dest_ip' '224.0.0.0/4'
START=99
STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
OPTIONS="-T -S -p 4022"
start() {
service_start /usr/bin/udpxy $OPTIONS
}
stop() {
service_stop /usr/bin/udpxy
}