diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-31 08:03:10 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-31 08:03:10 +0000 |
| commit | 66c33de60aa323a333f3b169355a06cd49e7cfeb (patch) | |
| tree | db0f4027f5ad873f2fc326acf758e35b5220994e /tools | |
| parent | 24e8e000ba6cb5ed671c40ebd7eec01f484aedbf (diff) | |
| download | boca-66c33de60aa323a333f3b169355a06cd49e7cfeb.tar.gz boca-66c33de60aa323a333f3b169355a06cd49e7cfeb.zip | |
bug fix
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/boca-checkinternet | 4 |
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 |