packages/net/chaosvpn/files/chaosvpn.init
nico b4a56caa9c packages/chaosvpn: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 22:15:40 +00:00

22 lines
327 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2011 OpenWrt.org
START=99
SERVICE_DAEMONIZE=1
start()
{
/usr/sbin/chaosvpn_config.sh
[ $? = 0 ] || {
logger "not starting chaosvpn, check your config"
exit 1
}
service_start /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf
}
stop()
{
service_stop /usr/sbin/chaosvpn
}