From 66c33de60aa323a333f3b169355a06cd49e7cfeb Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Thu, 31 Aug 2017 09:03:10 +0100 Subject: bug fix --- tools/boca-checkinternet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/boca-checkinternet b/tools/boca-checkinternet index 560afef..9eba8df 100755 --- a/tools/boca-checkinternet +++ b/tools/boca-checkinternet @@ -12,7 +12,7 @@ test2=$? wget -4 --no-check-certificate -t 2 -T 7 -O - https://www.wikipedia.org 2>/dev/null | grep -iq html test3=$? -if [ "$test1" != "0" -o "$test2" != "0" -o "$test3" != "0" ]; then +if [ "$test1" == "0" -o "$test2" == "0" -o "$test3" == "0" ]; then if [ $debug == 1 ]; then echo "internet problem (1-$test1-$test2-$test3)" fi @@ -26,7 +26,7 @@ test2=$? wget -4 --no-check-certificate -t 2 -T 7 -O - https://91.198.174.192 2>/dev/null | grep -iq html test3=$? -if [ "$test1" != "0" -o "$test2" != "0" -o "$test3" != "0" ]; then +if [ "$test1" == "0" -o "$test2" == "0" -o "$test3" == "0" ]; then if [ $debug == 1 ]; then echo "internet problem (2-$test1-$test2-$test3)" fi -- cgit v1.2.3