From a3763604621cd7bbe8618e07ef314f80691bee57 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 6 Mar 2019 12:52:48 +0100 Subject: [PATCH] better ping address to check internet --- home.admin/00infoLCD.sh | 2 +- home.admin/80scanLND.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 9b3571d..1057c21 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -73,7 +73,7 @@ while : # check for internet connection # https://en.wikipedia.org/wiki/1.1.1.1 - online=$(ping 1.1.1.1 -c 1 -W 2 | grep -c '1 received') + online=$(ping 1.0.0.1 -c 1 -W 2 | grep -c '1 received') if [ ${online} -eq 0 ]; then message="no internet connection" diff --git a/home.admin/80scanLND.sh b/home.admin/80scanLND.sh index 6d0f839..2bc23ad 100755 --- a/home.admin/80scanLND.sh +++ b/home.admin/80scanLND.sh @@ -36,7 +36,7 @@ if [ ${#item} -eq 0 ]; then # check if offline # https://en.wikipedia.org/wiki/1.1.1.1 - online=$(ping 1.1.1.1 -c 1 -W 2 | grep -c '1 received') + online=$(ping 1.0.0.1 -c 1 -W 2 | grep -c '1 received') fi # get total number of blocks @@ -59,7 +59,7 @@ fi if [ ${online} -eq 0 ]; then heigh=7 width=44 - infoStr=$(echo " Waiting INTERNET CONNECTION\n RaspiBlitz cannot ping 1.1.1.1\n Local IP is ${localip}\n Please check cables and router.") + infoStr=$(echo " Waiting INTERNET CONNECTION\n RaspiBlitz cannot ping 1.0.0.1\n Local IP is ${localip}\n Please check cables and router.") elif [ ${isInitialChainSync} -gt 0 ]; then heigh=7 infoStr=" Waiting for final Blockchain Sync\n Progress: ${progress} %\n Please wait - this can take some time.\n ssh admin@${localip}\n Password A"