]> 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:39 +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>
(cherry picked from commit 38f98fdccd3eb6995b972fabb0ce4e00d3e3cb76)

tests/t_client.sh.in

index d62a535de6dd43477aad14093d88004e2faf375d..4b58e9d56e1e484203f10437941f094d6a63424d 100755 (executable)
@@ -295,7 +295,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