[Feature Request]: check
/ck_ntp_sync
: check if current ntp status or system clock is synchronized
#81
Labels
Milestone
Is there an existing issue for the feature request?
Feature Description
check if current ntp status or system clock is synchronized
Feature Implementation
sync_status=
timedatectl status | grep "NTP synchronized\|System clock synchronized" | awk '{print $NF}'
if
yes
, return0
; otherwise return1
Additional information
No response
The text was updated successfully, but these errors were encountered: