aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-checkinternet
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-31 08:03:10 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-31 08:03:10 +0000
commit66c33de60aa323a333f3b169355a06cd49e7cfeb (patch)
treedb0f4027f5ad873f2fc326acf758e35b5220994e /tools/boca-checkinternet
parent24e8e000ba6cb5ed671c40ebd7eec01f484aedbf (diff)
downloadboca-66c33de60aa323a333f3b169355a06cd49e7cfeb.tar.gz
boca-66c33de60aa323a333f3b169355a06cd49e7cfeb.zip
bug fix
Diffstat (limited to 'tools/boca-checkinternet')
-rwxr-xr-xtools/boca-checkinternet4
1 files 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