From 2a59779bd3314af2db5b8e19e2a2021352694c02 Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 8 May 2026 09:49:15 +0100 Subject: [PATCH] SHARMAN-4067 Delay in NTP sync observed after FactoryReset Reason for change: Adding a timeout value and maximum retry in the curl command to avoid indefinite stuck of curl waiting for the response Test Procedure: NA Risks: LOW Priority: P1 Signed-off-by: usi096 --- source/scripts/init/service.d/service_connectivitycheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/scripts/init/service.d/service_connectivitycheck.sh b/source/scripts/init/service.d/service_connectivitycheck.sh index 728fb319..9427c713 100644 --- a/source/scripts/init/service.d/service_connectivitycheck.sh +++ b/source/scripts/init/service.d/service_connectivitycheck.sh @@ -91,7 +91,7 @@ while true; do fi exit 0 fi - HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$URL") + HTTP_CODE=$(curl -s --connect-timeout 3 --max-time 5 -o /dev/null -w "%{http_code}" "$URL") CURL_STATUS=$? uptime=$(cut -d. -f1 /proc/uptime) uptime_ms=$((uptime*1000))