This check tries to wait for NTP daemon to synchronise clock to lower stratum
than 16 before running the aiccu binary. In case timeout (configurable
in new option ntpsynctimeout; default is 90 seconds) is reached, the
AICCU is run neverrtheless. This makes the new script compliant with
some corner case scenarios like not using Busybox NTPd or not using NTPd
at all, maintaining maximum out-of-the box functionality.
Signed-off-by: Ondrej Caletka <Ondrej@Caletka.cz>
I've reworked the patches to a simpler version that would be compatible with most setups. Additional waiting for NTP sync can be configured using option ntpsynctimeout, setting to 0 disables NTP sync check completely.