cf2ac65444
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
19 lines
271 B
Bash
Executable file
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
|