18 lines
256 B
Plaintext
18 lines
256 B
Plaintext
|
#!/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
|
||
|
}
|