Fix t_client runs on OpenSolaris

"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>
This commit is contained in:
Gert Doering 2016-09-20 11:19:14 +02:00 committed by David Sommerseth
parent 6cd7e08d89
commit 38f98fdccd

View file

@ -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