post-merge: hide stderr, when tinc cli is not found

This commit is contained in:
Martin Weinelt 2015-08-07 15:54:00 +02:00
commit 41c67d6c81
3 changed files with 1 additions and 113 deletions

View file

@ -27,7 +27,7 @@ while read HOST; do
echo "ConnectTo = $HOST" >> $TINCCFG
done < metanodes
if hash tinc; then
if hash tinc; 2>/dev/null then
# prefer the command line interface that comes with tinc1.1 if it exists
tinc -n icvpn reload
else