Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
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.

View File

@@ -0,0 +1,39 @@
#! /bin/sh
#
# hwclock This writes the system time to the RTC on shutdown
#
RTC_DEVICE=rtc0
DAEMON=hwclock
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
# Quietly do nothing if /dev/rtc0 does not exist
[ -c /dev/$RTC_DEVICE ] || exit 0
start(){
: # Nothing to do on startup
}
stop(){
printf "Saving the system clock to /dev/%s\n" "${RTC_DEVICE}"
/sbin/$DAEMON -f "/dev/${RTC_DEVICE}" -w
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
;;
esac

View File

@@ -0,0 +1,12 @@
################################################################################
#
# 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))