"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>
| ... | ... |
@@ -308,7 +308,7 @@ do |
| 308 | 308 |
while [ $ovpn_init_check -gt 0 ]; |
| 309 | 309 |
do |
| 310 | 310 |
sleep 3 # Wait for OpenVPN to initialize and have had time to write the pid file |
| 311 |
- grep -q "Initialization Sequence Completed" $LOGDIR/$SUF:openvpn.log |
|
| 311 |
+ grep "Initialization Sequence Completed" $LOGDIR/$SUF:openvpn.log >/dev/null |
|
| 312 | 312 |
if [ $? -eq 0 ]; then |
| 313 | 313 |
ovpn_init_check=0 |
| 314 | 314 |
ovpn_init_success=1 |