packages/net/stun/files/stund.init
florian 64101f661c Add stun server and client
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14206 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-26 17:58:13 +00:00

19 lines
326 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org
START=70
start() {
config_load "6stund"
config_get PRIMIP primaryip
config_get SECIP secondaryip
config_get PRIMPORT primaryport
config_get SECPORT secondaryport
/usr/sbin/stund -b -h $PRIMIP -a $SECIP -p $PRIMPORT -o $SECPORT
}
stop() {
killall -9 stund
}