2ad1dc3fd7
tinc (1.0.15-1) unstable; urgency=low * New upstream release. * Send SIGALRM to running tinc daemons whenever an interface is brought up with the ifupdown framework. Based on a patch from Joachim Breitner. Closes: #629880 * Allow tinc daemons to be started using ifupdown.
19 lines
267 B
Bash
Executable file
19 lines
267 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ "$IF_TINC_NET" ] ; then
|
|
tincd -n "$IF_TINC_NET" -k
|
|
sleep 0.1
|
|
i=0;
|
|
while [ -f "/var/run/tinc.$IF_TINC_NET.pid" ] ; do
|
|
if [ $i = '30' ] ; then
|
|
echo 'Failed to stop tinc daemon!'
|
|
exit 1
|
|
fi
|
|
sleep 0.1
|
|
i=$(($i+1))
|
|
done
|
|
fi
|
|
|
|
exit 0
|