ca799d93a3
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
18 lines
256 B
Bash
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
|
|
}
|