summaryrefslogtreecommitdiff
path: root/bin/extra/ehbvpn
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-15 22:47:39 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-15 22:48:05 +0200
commit148ae72a5da7e6c145076d43ac53824dbee3de25 (patch)
tree0a546a35c20537b6bc386cfd6527647566972cd4 /bin/extra/ehbvpn
parenta2238f99ff1f977a47610637b26a14433482582a (diff)
made error more clean
Diffstat (limited to 'bin/extra/ehbvpn')
-rwxr-xr-xbin/extra/ehbvpn6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/extra/ehbvpn b/bin/extra/ehbvpn
index b9a9f45..d3e587c 100755
--- a/bin/extra/ehbvpn
+++ b/bin/extra/ehbvpn
@@ -5,8 +5,11 @@ then
exit 1
fi
-which pptpsetup > /dev/null 2>&1 ||
+if ! which pptpsetup > /dev/null 2>&1
+then
echo "Please install pptpsetup..." >&2
+ exit 1
+fi
name="ehb_tunnel"
ip="193.190.238.38"
@@ -27,4 +30,3 @@ Created tunnel: $name
activate it with
# pon ehb_tunnel debug dump logfd 2 nodetach
EOF
-