Add stun server and client
[openwrt/svn-archive/archive.git] / net / stun / files / stund.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2009 OpenWrt.org
3 START=70
4
5 start() {
6 config_load "6stund"
7
8 config_get PRIMIP primaryip
9 config_get SECIP secondaryip
10 config_get PRIMPORT primaryport
11 config_get SECPORT secondaryport
12
13 /usr/sbin/stund -b -h $PRIMIP -a $SECIP -p $PRIMPORT -o $SECPORT
14 }
15
16 stop() {
17 killall -9 stund
18 }