mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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>
11 lines
365 B
Plaintext
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.
|