Repository navigation
Conversation
chronyd can restore the system time at startup from the drift file's
modification time. This helps routers without a real-time clock recover
a more recent time after reboot when the drift file is stored on
persistent storage.
Add a UCI section to configure the drift file path, its minimum update
interval, and optional time restoration using chronyd's -s option.
Keep time restoration disabled by default and preserve the existing
drift file path for configurations without the new section.
```uci
config driftfile 'driftfile'
# Set to 1 to restore time from the drift file at startup
option restore_time '0'
# Use a path on persistent storage to retain the file across reboots
option file '/var/run/chrony/drift'
# Minimum update interval in seconds; empty uses chronyd's default
option interval ''
```
Signed-off-by: Ivan Romanov <drizt72@zoho.eu>
Formality Check: FailedWe checked this pull request against the contribution guidelines. Here is what needs your attention: 🛑 CRITICAL ERRORS
Tip Do not close this pull request to make corrections. Instead, modify your existing commits (e.g. Something broken? Consider reporting an issue. |
It's not mine file. The file from original package. I only removed two lines in it. |
chronyd can restore the system time at startup from the drift file's modification time. This helps routers without a real-time clock recover a more recent time after reboot when the drift file is stored on persistent storage.
Add a UCI section to configure the drift file path, its minimum update interval, and optional time restoration using chronyd's -s option. Keep time restoration disabled by default and preserve the existing drift file path for configurations without the new section.
📦 Package Details
Maintainer: @mlichvar
(You can find this by checking the history of the package
Makefile.)Description:
See commit message
🧪 Run Testing Details
✅ Formalities