b4a56caa9c
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29056 3c298f89-4303-0410-b956-a3cf2f4a3e73
22 lines
327 B
Bash
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
|
|
}
|