From 6864ad2e863205472f8ea2057c61e949dc450151 Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Fri, 26 Aug 2016 16:55:02 -0300 Subject: watchdog-config: Add recipe Provides configuration files for watchdog. Add watchdog-config as a runtime dependence of watchdog and remove watchdog.conf file from watchdog installation. Signed-off-by: Fabio Berton Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie --- meta/recipes-extended/watchdog/watchdog_5.15.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended/watchdog/watchdog_5.15.bb') diff --git a/meta/recipes-extended/watchdog/watchdog_5.15.bb b/meta/recipes-extended/watchdog/watchdog_5.15.bb index 1c0049c7af..cedfc042ce 100644 --- a/meta/recipes-extended/watchdog/watchdog_5.15.bb +++ b/meta/recipes-extended/watchdog/watchdog_5.15.bb @@ -40,6 +40,9 @@ INITSCRIPT_PARAMS_${PN}-keepalive = "start 15 1 2 3 4 5 . stop 85 0 6 ." do_install_append() { install -D ${S}/redhat/watchdog.init ${D}/${sysconfdir}/init.d/watchdog.sh install -Dm 0755 ${WORKDIR}/wd_keepalive.init ${D}${sysconfdir}/init.d/wd_keepalive + + # watchdog.conf is provided by the watchdog-config recipe + rm ${D}${sysconfdir}/watchdog.conf } PACKAGES =+ "${PN}-keepalive" @@ -49,7 +52,8 @@ FILES_${PN}-keepalive = " \ ${sbindir}/wd_keepalive \ " -RDEPENDS_${PN} += "${PN}-keepalive" +RDEPENDS_${PN} += "${PN}-config ${PN}-keepalive" +RDEPENDS_${PN}-keepalive += "${PN}-config" RRECOMMENDS_${PN} = "kernel-module-softdog" -- cgit 1.2.3-korg