Skip to content

Commit

Permalink
FIX: fix network check
Browse files Browse the repository at this point in the history
  • Loading branch information
codeudan authored Dec 7, 2023
1 parent bdb0853 commit a22e493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/build/.tmp_update/script/network/update_networking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a22e493

Please sign in to comment.