istoreos/package/base-files/files/etc/hotplug.d/ntp/00-savelatest
Liangbin Lian 3dc602c80c base-files: save current time to /etc on poweroff if ntp synced before
even if the RTC fails, we can still keep the time as accurate as possible.
2025-09-23 14:11:57 +08:00

4 lines
68 B
Plaintext

[ "$ACTION" = "stratum" ] || exit 0
touch /var/state/ntp_last_sync