From: Gert Doering Date: Tue, 20 Sep 2016 09:19:14 +0000 (+0200) Subject: Fix t_client runs on OpenSolaris X-Git-Tag: v2.4_alpha1~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38f98fdccd3eb6995b972fabb0ce4e00d3e3cb76;p=thirdparty%2Fopenvpn.git Fix t_client runs on OpenSolaris "grep -q" is not portable to non-GNU grep. Replace with ">/dev/null". Signed-off-by: Gert Doering Acked-by: David Sommerseth 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 --- diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index bde07a6ed..2b9bacf58 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -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