Conor Buckley


Is Time Synchronised (isSynced)

Description

isSynced is a basic Bash function which retrieves the NTP synchronisation status from 'timedatectl' and returns 0 if your clock is synced with NTP, 1 if it isn't, and 2 is something went wrong when finding out.

Note that all files provided below for download are encapsulated in a G.P.G. signature made using my 'Conor Andrew Buckley' key pair. To download my 'Conor Andrew Buckley' key pair, visit the 'Contact and Authentication' page.

Version Licence Type Last Updated (YYYY-MM-DD) Notes
1 2-Clause B.S.D. Licence 2018-06-25 This is the first version of isSynced to be release. It is currently in use in a couple of my own scripts and seems stable.