Files
buildroot/package/hwclock-initscript/hwclock-initscript.mk
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

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))