source: packages/net/chaosvpn/files/chaosvpn.init @ 22831

Last change on this file since 22831 was 22831, checked in by ryd, 6 years ago

Update ChaosVPN

done by Haegar
add init script
update to version 2.0

File size: 256 bytes
Line 
1#!/bin/sh /etc/rc.common
2START=99
3
4start()
5{
6        /usr/sbin/chaosvpn_config.sh
7        [ $? = 0 ] || {
8                logger "not starting chaosvpn, check your config"
9                exit 1
10        }
11        /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf >/dev/null 2>&1 &
12}
13
14stop()
15{
16        killall chaosvpn
17}
Note: See TracBrowser for help on using the repository browser.