packages/net/chaosvpn/files/chaosvpn.init
ryd ca799d93a3 Update ChaosVPN
done by Haegar
add init script
update to version 2.0



git-svn-id: svn://svn.openwrt.org/openwrt/packages@22831 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-29 12:38:00 +00:00

18 lines
256 B
Bash

#!/bin/sh /etc/rc.common
START=99
start()
{
/usr/sbin/chaosvpn_config.sh
[ $? = 0 ] || {
logger "not starting chaosvpn, check your config"
exit 1
}
/usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf >/dev/null 2>&1 &
}
stop()
{
killall chaosvpn
}