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 | 21 +++++++++++++++++++++ .../recipes-core/busybox/files/watchdog.cfg | 1 + .../recipes-core/busybox/files/watchdog.sh | 17 +++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 meta-efibootguard/recipes-core/busybox/busybox_%.bbappend create mode 100644 meta-efibootguard/recipes-core/busybox/files/watchdog.cfg create mode 100644 meta-efibootguard/recipes-core/busybox/files/watchdog.sh diff --git a/meta-efibootguard/recipes-core/busybox/busybox_%.bbappend b/meta-efibootguard/recipes-core/busybox/busybox_%.bbappend new file mode 100644 index 0000000..0e3f7b6 --- /dev/null +++ b/meta-efibootguard/recipes-core/busybox/busybox_%.bbappend @@ -0,0 +1,21 @@ +# EFI Boot Guard +# +# Copyright (c) Siemens AG, 2017 +# +# Authors: +# Andreas Reichel <[email protected]> +# +# This work is licensed under the terms of the GNU GPL, version 2. +# See the COPYING.GPLv2 file in the top-level directory. + +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/meta-efibootguard/recipes-core/busybox/files/watchdog.cfg b/meta-efibootguard/recipes-core/busybox/files/watchdog.cfg new file mode 100644 index 0000000..80e211d --- /dev/null +++ b/meta-efibootguard/recipes-core/busybox/files/watchdog.cfg @@ -0,0 +1 @@ +CONFIG_WATCHDOG=y diff --git a/meta-efibootguard/recipes-core/busybox/files/watchdog.sh b/meta-efibootguard/recipes-core/busybox/files/watchdog.sh new file mode 100644 index 0000000..ecad50d --- /dev/null +++ b/meta-efibootguard/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/20170905123727.24381-6-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
