branch Attitude Adjustment packages
[12.09/packages.git] / net / udpxy / files / udpxy.init
1 #!/bin/sh /etc/rc.common
2
3 # To open multicast traffic, add the following rule at the end of
4 # /etc/config/firewall file:
5 #
6 # config 'rule'
7 #     option 'target' 'ACCEPT'
8 #     option '_name' 'multicast'
9 #     option 'src' 'wan'
10 #     option 'proto' 'all'
11 #     option 'dest_ip' '224.0.0.0/4'
12
13 START=99
14 STOP=10
15
16 SERVICE_DAEMONIZE=1
17 SERVICE_WRITE_PID=1
18
19 OPTIONS="-T -S -p 4022"
20
21 start() {
22         service_start /usr/bin/udpxy $OPTIONS
23 }
24
25 stop() {
26         service_stop /usr/bin/udpxy
27 }