aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-09-08 11:33:54 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-09-08 11:33:54 +0000
commit3a9cfc0d808a69edc7c146b961edf134e22808a5 (patch)
tree3e7af00990ae1d2f6aa69b777bd5e40b242463d0 /tools
parentcb8298bbc8cb69e04811a4da5a44f34a5d5d5291 (diff)
parent5462383a552129cdd2dfce52f2afece9b3a2e3ae (diff)
downloadboca-3a9cfc0d808a69edc7c146b961edf134e22808a5.tar.gz
boca-3a9cfc0d808a69edc7c146b961edf134e22808a5.zip
Merge branch 'master' of github.com:cassiopc/boca
Diffstat (limited to 'tools')
-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