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