#!/bin/sh

set -e

test "$METHOD" != loopback -a -n "$IF_TINC_NET" || exit 0

if test -z "$IF_TINC_PIDFILE"; then
	/usr/sbin/tinc -n "$IF_TINC_NET" retry
else
	/usr/sbin/tinc -n "$IF_TINC_NET" --pidfile="$IF_TINC_PIDFILE" retry
fi
