commit 69a502f9a12d83068d1fdd57504347d3edbc93c6
parent 4c3654517e744a58cfc5d30a5e0913982683a178
Author: sin <sin@2f30.org>
Date: Thu, 31 Dec 2015 15:45:16 +0000
check if tincd/curl is installed
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/2f30-vpn b/2f30-vpn
@@ -2,6 +2,15 @@
basedir=/tmp/tinc/2f30
+command -v tincd >/dev/null || {
+ echo tincd is not installed 1>&2
+ exit 1
+}
+command -v curl >/dev/null || {
+ echo curl is not installed 1>&2
+ exit 1
+}
+
if test -e $basedir; then
echo $basedir already exists, please remove it 1>&2
exit 1