Files
Michael Walle c09ee07b2c package/hwclock-initscript: new package
Add a new initscript to save the date and time to the hardware clock
on shutdown.

Signed-off-by: Michael Walle <michael@walle.cc>
[Arnout:
 - package as hwclock-initscript instead of buildroot-initscripts;
 - mention in help text that it isn't needed at boot;
 - rewrite initscript according to our usual pattern;
 - fix shellcheck errors.
]
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
2025-05-18 22:42:54 +02:00

11 lines
365 B
Plaintext

config BR2_PACKAGE_HWCLOCK_INITSCRIPT
bool "hwclock-initscript"
depends on !BR2_PACKAGE_SYSTEMD
depends on BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_UTIL_LINUX_HWCLOCK
help
Initscript to save the date and time to the hardware clock on
shutdown.
Note that the kernel already loads the time from the hwclock
at boot time, no init script is needed for that.