]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix t_client runs on OpenSolaris
authorGert Doering <gert@greenie.muc.de>
Tue, 20 Sep 2016 09:19:14 +0000 (11:19 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 20 Sep 2016 09:47:15 +0000 (12:47 +0300)
"grep -q" is not portable to non-GNU grep.  Replace with ">/dev/null".

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: 20160920091914.37585-1-gert@greenie.muc.de
URL: http://www.mail-archive.com/search?l=mid&q=20160920091914.37585-1-gert@greenie.muc.de
Signed-off-by: David Sommerseth <davids@openvpn.net>
tests/t_client.sh.in

index bde07a6edfca11277d0cc13800e390edb490f749..2b9bacf581d39fc676e9537e107448a896d0a233 100755 (executable)
@@ -308,7 +308,7 @@ do
     while [ $ovpn_init_check -gt 0 ];
     do
        sleep 3  # Wait for OpenVPN to initialize and have had time to write the pid file
-       grep -q "Initialization Sequence Completed" $LOGDIR/$SUF:openvpn.log
+       grep "Initialization Sequence Completed" $LOGDIR/$SUF:openvpn.log >/dev/null
        if [ $? -eq 0 ]; then
            ovpn_init_check=0
            ovpn_init_success=1