# $1 ... VPN to load
vpn_load () {
- CFG="$TCONF/$1/tincd.conf"
+ CFG="$TCONF/$1/tinc.conf"
[ -f $CFG ] || { echo "Error: $CFG does not exist" >&2 ; return 1 }
# load TINCD config
ip route flush dev $TAP &> /dev/null
# kill the tincd daemon
- PID="$TPIDS/tincd.$1.pid"
+ PID="$TPIDS/tinc.$1.pid"
if [ -f $PID ]; then
$TINCD --net="$1" --kill &> /dev/null
RET=$?
status)
echo -n "Currently running VPNs: "
for vpn in `ls -1 $TCONF`; do
- PID="$TPIDS/tincd.$vpn.pid"
+ PID="$TPIDS/tinc.$vpn.pid"
echo -n "$vpn "
if [ -f $PID -a `ps ax | grep "^ *$(cat $PID)" | wc -l` -eq 1 ]
then