From: Andreas Reichel <[email protected]> From: Reichel Andreas <[email protected]>
* Activate busybox watchdog configuration if busybox is used to have the watchdog binary. * Install a sysV init script to feed the watchdog. Signed-off-by: Andreas Reichel <[email protected]> --- recipes-core/busybox/busybox_%.bbappend | 11 +++++++++++ recipes-core/busybox/files/watchdog.cfg | 1 + recipes-core/busybox/files/watchdog.sh | 17 +++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 recipes-core/busybox/busybox_%.bbappend create mode 100644 recipes-core/busybox/files/watchdog.cfg create mode 100644 recipes-core/busybox/files/watchdog.sh diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend new file mode 100644 index 0000000..94da82e --- /dev/null +++ b/recipes-core/busybox/busybox_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "file://watchdog.cfg \ + file://watchdog.sh" + +do_install_append() { + install -d "${D}${sysconfdir}/init.d" + install -m 0755 "${WORKDIR}/watchdog.sh" "${D}${sysconfdir}/init.d/watchdog.sh" + install -d "${D}${sysconfdir}/rcS.d" + ln -sf ../init.d/watchdog.sh "${D}${sysconfdir}/rcS.d/S00watchdog.sh" +} diff --git a/recipes-core/busybox/files/watchdog.cfg b/recipes-core/busybox/files/watchdog.cfg new file mode 100644 index 0000000..80e211d --- /dev/null +++ b/recipes-core/busybox/files/watchdog.cfg @@ -0,0 +1 @@ +CONFIG_WATCHDOG=y diff --git a/recipes-core/busybox/files/watchdog.sh b/recipes-core/busybox/files/watchdog.sh new file mode 100644 index 0000000..ecad50d --- /dev/null +++ b/recipes-core/busybox/files/watchdog.sh @@ -0,0 +1,17 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: watchdog +# Required-Start: mountvirtfs +# Required-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: Start watchdog +# Description: +### END INIT INFO + +. /etc/default/rcS + +/sbin/watchdog /dev/watchdog + +: exit 0 + -- 2.14.1 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20170830112917.22195-6-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
