Created attachment 203314 [details]
Patch allowing to optionally run ntpdate at host resume time
When sleeping a host's hardware clock may wildly be drifing out of sync with UTC, ntp will correct that but it could take a few hours before the system time is again in synchronized. The proposed patch address this issue by optionally running ntpdate at resume time. While working on this I took the liberty to document the configuration variables used by the ntpdate rc script.
I forgot the disclose that I made this patch against 11-STABLE revision 345570.
Running ntpdate without no functional network interface is useless. Waiting for network availability is therefore important. I added a dependency on a patch that permit netwait to run at resume time.