#!/bin/sh
#
# Start tincd
#

case "$1" in
  start)
        echo -e "Starting tincd vpn ...\n"
        tincd -n psgnet
        ;;
  stop)
        echo -e "Stopping tincd vpn ...\n"
        tincd -n psgnet -k
        ;;
  restart|reload)
        "$0" stop
        "$0" start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?
