tinc/debian/tinc.if-post-down
Guus Sliepen a62bf04cde Import Debian changes 1.1~pre7-1
tinc (1.1~pre7-1) experimental; urgency=high

  * New upstream release.
    - Drop packets forwarded via TCP if they are too big (CVE-2013-1428).
2019-08-26 13:44:50 +02:00

19 lines
268 B
Bash
Executable file

#!/bin/sh
set -e
if [ "$IF_TINC_NET" ] ; then
tinc -n "$IF_TINC_NET" stop
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