mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -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>
13 lines
369 B
Makefile
13 lines
369 B
Makefile
################################################################################
|
|
#
|
|
# hwclock-initscript
|
|
#
|
|
################################################################################
|
|
|
|
define HWCLOCK_INITSCRIPT_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 $(HWCLOCK_INITSCRIPT_PKGDIR)/S20hwclock \
|
|
$(TARGET_DIR)/etc/init.d/S20hwclock
|
|
endef
|
|
|
|
$(eval $(generic-package))
|