Browse code

t_client.sh: Write errors to stderr and document requirements

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Matthias Andree <matthias.andree@gmx.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1384597423-11136-1-git-send-email-dazo@users.sourceforge.net>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7984
Signed-off-by: Gert Doering <gert@greenie.muc.de>

David Sommerseth authored on 2013/11/16 19:23:43
Showing 2 changed files
... ...
@@ -87,6 +87,10 @@ OPTIONAL (for developers only):
87 87
       -- available from http://www.gnu.org/software/software.html
88 88
   (2) Dmalloc library
89 89
       -- available from http://dmalloc.com/
90
+  (3) If using t_client.sh test framework, fping/fping6 is needed
91
+      -- Available from http://www.fping.org/
92
+      Note: t_client.sh needs an external configured OpenVPN server.
93
+      See t_client.rc-sample for more info.
90 94
 
91 95
 *************************************************************************
92 96
 
... ...
@@ -27,12 +27,12 @@ fi
27 27
 # Check for external dependencies
28 28
 which fping > /dev/null
29 29
 if [ $? -ne 0 ]; then
30
-    echo "$0: fping is not available in \$PATH"
30
+    echo "$0: fping is not available in \$PATH" >&2
31 31
     exit 77
32 32
 fi
33 33
 which fping6 > /dev/null
34 34
 if [ $? -ne 0 ]; then
35
-    echo "$0: fping6 is not available in \$PATH"
35
+    echo "$0: fping6 is not available in \$PATH" >&2
36 36
     exit 77
37 37
 fi
38 38