From a22e493857a7e870ef96e7a29da034c91f027d57 Mon Sep 17 00:00:00 2001 From: duangui Date: Thu, 7 Dec 2023 22:16:37 +0800 Subject: [PATCH] FIX: fix network check --- static/build/.tmp_update/script/network/update_networking.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/build/.tmp_update/script/network/update_networking.sh b/static/build/.tmp_update/script/network/update_networking.sh index 1ceb94d3d3..9dc9eccc07 100644 --- a/static/build/.tmp_update/script/network/update_networking.sh +++ b/static/build/.tmp_update/script/network/update_networking.sh @@ -456,13 +456,13 @@ check_ntpstate() { if [ "$got_ip" -eq 1 ]; then while true; do log "NTPwait: get_time attempt $attempts" - if ping -q -c 1 -W 1 google.com > /dev/null 2>&1; then + if ping -q -c 1 -W 1 worldtimeapi.org > /dev/null 2>&1; then if get_time; then ret_val=0 break fi else - log "NTPwait: Can't reach google." + log "NTPwait: Can't reach network." fi attempts=$((attempts + 1)) if [ $attempts -eq $max_attempts ]; then