tinc/debian/tinc.if-post-down
Michael Tokarev cf2ac65444 Import Debian changes 1.1~pre2-1
tinc (1.1~pre2-1) experimental; urgency=low

  * first cut of 1.1-tobe.
    Rewrote control scripts et al to use tincctl.
  * build-depend on libssl >>1.0.0 to get proper EC support
  * remove crypto-related symlinks from src/ in clean --
    probably should go into upstream makefile instead
2019-08-26 13:44:49 +02:00

19 lines
271 B
Bash
Executable file

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