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,57 @@
config BR2_PACKAGE_WATCHDOGD
bool "watchdogd"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBCONFUSE
select BR2_PACKAGE_LIBITE
select BR2_PACKAGE_LIBUEV
help
Extended version of uClinux-dist watchdogd. Monitors loadavg,
file descriptors and memory leaks, and capable of supervising
your processes main loop using an instrumentation API.
A reset reason is saved for power loss, CPU overload, or any
of the monitored conditions (above). The full capabilities
are limited by the kernel watchdog driver, but even the basic
"softdog" driver is supported. See /etc/watchdogd.conf for
details, and try watchdogctl for system status and available
commands.
https://github.com/troglobit/watchdogd/
if BR2_PACKAGE_WATCHDOGD
config BR2_PACKAGE_WATCHDOGD_GENERIC
bool "Generic script monitor"
default y if BR2_PACKAGE_WATCHDOGD_GENERIC_POLL_WRAP # legacy 2024.02
help
Enable generic script monitor.
config BR2_PACKAGE_WATCHDOGD_LOADAVG
bool "CPU load average monitor"
default y if BR2_PACKAGE_WATCHDOGD_LOADAVG_POLL_WRAP # legacy 2024.02
help
Enable CPU load average monitor.
config BR2_PACKAGE_WATCHDOGD_FILENR
bool "File descriptor leak monitor"
default y if BR2_PACKAGE_WATCHDOGD_FILENR_POLL_WRAP # legacy 2024.02
help
Enable file descriptor leak monitor.
config BR2_PACKAGE_WATCHDOGD_MEMINFO
bool "Memory leak monitor"
default y if BR2_PACKAGE_WATCHDOGD_MEMINFO_POLL_WRAP # legacy 2024.02
help
Enable memory leak monitor.
config BR2_PACKAGE_WATCHDOGD_FSMON
bool "File system monitor"
help
Enable file system monitor.
config BR2_PACKAGE_WATCHDOGD_TEMPMON
bool "Temperature monitor"
help
Enable temperature monitor.
endif

View File

@@ -0,0 +1,78 @@
#!/bin/sh
DAEMON="watchdogd"
PIDFILE="/var/run/$DAEMON/pid"
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
start() {
printf "Starting %s: " "$DAEMON"
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon --start --pidfile "$PIDFILE" \
--exec "/usr/sbin/$DAEMON" -- $WATCHDOGD_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
stop() {
printf "Stopping %s: " "$DAEMON"
start-stop-daemon --stop --pidfile "$PIDFILE" \
--exec "/usr/sbin/$DAEMON"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
return "$status"
fi
# watchdogd deletes its PID file on exit, wait for it to be gone
while [ -f "$PIDFILE" ]; do
sleep 0.1
done
return "$status"
}
restart() {
stop
start
}
reload() {
printf "Reloading %s config: " "$DAEMON"
start-stop-daemon --stop --signal HUP -q --pidfile "$PIDFILE" \
--exec "/usr/sbin/$DAEMON"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
;;
esac
exit $?

View File

@@ -0,0 +1,5 @@
# Upstream .sha256 from GitHub
sha256 7ae90acfd8879145be6fb9afe0f388e461230ce76ff9b8f4daeb93250351c314 watchdogd-4.1.tar.gz
# Locally calculated
sha256 e233c56d807c74c67f2eff47ad03c216144cdd374d8d7578b996c28c260eadda LICENSE

View File

@@ -0,0 +1,66 @@
################################################################################
#
# watchdogd
#
################################################################################
WATCHDOGD_VERSION = 4.1
WATCHDOGD_SITE = https://github.com/troglobit/watchdogd/releases/download/$(WATCHDOGD_VERSION)
WATCHDOGD_LICENSE = ISC
WATCHDOGD_LICENSE_FILES = LICENSE
WATCHDOGD_CPE_ID_VENDOR = troglobit
WATCHDOGD_INSTALL_STAGING = YES
WATCHDOGD_DEPENDENCIES = host-pkgconf libconfuse libite libuev
WATCHDOGD_SELINUX_MODULES = watchdog
WATCHDOGD_CONF_OPTS = \
--disable-compat \
--disable-examples
ifneq ($(BR2_PACKAGE_WATCHDOGD_GENERIC),y)
WATCHDOGD_CONF_OPTS += --without-generic
else
WATCHDOGD_CONF_OPTS += --with-generic
endif
ifneq ($(BR2_PACKAGE_WATCHDOGD_LOADAVG),y)
WATCHDOGD_CONF_OPTS += --without-loadavg
else
WATCHDOGD_CONF_OPTS += --with-loadavg
endif
ifneq ($(BR2_PACKAGE_WATCHDOGD_FILENR),y)
WATCHDOGD_CONF_OPTS += --without-filenr
else
WATCHDOGD_CONF_OPTS += --with-filenr
endif
ifneq ($(BR2_PACKAGE_WATCHDOGD_MEMINFO),y)
WATCHDOGD_CONF_OPTS += --without-meminfo
else
WATCHDOGD_CONF_OPTS += --with-meminfo
endif
ifneq ($(BR2_PACKAGE_WATCHDOGD_FSMON),y)
WATCHDOGD_CONF_OPTS += --without-fsmon
else
WATCHDOGD_CONF_OPTS += --with-fsmon
endif
ifneq ($(BR2_PACKAGE_WATCHDOGD_TEMPMON),y)
WATCHDOGD_CONF_OPTS += --without-tempmon
else
WATCHDOGD_CONF_OPTS += --with-tempmon
endif
define WATCHDOGD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/watchdogd/S01watchdogd \
$(TARGET_DIR)/etc/init.d/S01watchdogd
endef
define WATCHDOGD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(WATCHDOGD_SRCDIR)/watchdogd.service \
$(TARGET_DIR)/usr/lib/systemd/system/watchdogd.service
endef
$(eval $(autotools-package))