From 69c49012a8e549983a7791972266bf6094336c55 Mon Sep 17 00:00:00 2001 From: Jandalf81 Date: Sat, 15 Sep 2018 14:51:50 +0200 Subject: [PATCH] ping 8.8.8.8 instead of www.google.com (should be faster and more reliable) --- rclone_script.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rclone_script.sh b/rclone_script.sh index 79b1768..520400a 100644 --- a/rclone_script.sh +++ b/rclone_script.sh @@ -176,13 +176,13 @@ function getAvailableConnection () return 2 fi - ping -q -w 1 -c 1 "www.google.com" > /dev/null + ping -q -w 1 -c 1 "8.8.8.8" > /dev/null if [[ $? -eq 0 ]] then - log 2 "www.google.com PING successful" + log 2 "8.8.8.8 PING successful" return 0 else - log 2 "www.google.com could not be PINGed" + log 2 "8.8.8.8 could not be PINGed" return 1 fi }