mirror of
https://github.com/openwrt/packages.git
synced 2025-01-31 03:41:44 +00:00
21c0f580f1
Extend configuration of NTP sources in UCI: - Add nts option to enable NTS - Add disabled option to allow inactive sources Add nts section to UCI with: - rtccheck option to disable certificate time checks on systems that don't have an RTC to avoid the chicken-and-egg problem (it is less secure, but still should be better than no NTS at all) - systemcerts option to disable system certificates - trustedcerts option to specify path to trusted certificates Save NTS keys and cookies by default to avoid unnecessary NTS-KE sessions when restarted or switching back to an already used NTS source. Also, save the drift to stabilize the clock after chronyd restart. Signed-off-by: Miroslav Lichvar <mlichvar0@gmail.com>
21 lines
388 B
Plaintext
21 lines
388 B
Plaintext
# Load UCI configuration
|
|
confdir /var/etc/chrony.d
|
|
|
|
# Load NTP servers from DHCP if enabled in UCI
|
|
sourcedir /var/run/chrony-dhcp
|
|
|
|
# Log clock errors above 0.5 seconds
|
|
logchange 0.5
|
|
|
|
# Don't log client accesses
|
|
noclientlog
|
|
|
|
# Mark the system clock as synchronized
|
|
rtcsync
|
|
|
|
# Record the clock's drift
|
|
driftfile /var/run/chrony/drift
|
|
|
|
# Save NTS keys and cookies
|
|
ntsdumpdir /var/run/chrony
|