a62bf04cde
tinc (1.1~pre7-1) experimental; urgency=high * New upstream release. - Drop packets forwarded via TCP if they are too big (CVE-2013-1428).
19 lines
268 B
Bash
Executable file
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
|