Is there an existing issue for the feature request?
Feature Description
check if current ntp status or system clock is synchronized
usage:
check/ck_ntp_sync.sh
example:
check/ck_ntp_sync.sh
output:
return 0: if synced
return 1: otherwise
Feature Implementation
sync_status=timedatectl status | grep "NTP synchronized\|System clock synchronized" | awk '{print $NF}'
if yes, return 0; otherwise return 1
Additional information
No response