[OE-core] [PATCH] watchdog: kill update-rc.d when not using sysvinit
Abdur Rehman
abdur_rehman at mentor.com
Tue Jul 28 17:11:47 UTC 2015
Fixes a dependency on a nonexistent initscripts-functions package.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Abdur Rehman <abdur_rehman at mentor.com>
---
meta/recipes-extended/watchdog/watchdog_5.14.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-extended/watchdog/watchdog_5.14.bb b/meta/recipes-extended/watchdog/watchdog_5.14.bb
index 9ec0a8e..7557597 100644
--- a/meta/recipes-extended/watchdog/watchdog_5.14.bb
+++ b/meta/recipes-extended/watchdog/watchdog_5.14.bb
@@ -28,3 +28,8 @@ RRECOMMENDS_${PN} = "kernel-module-softdog"
do_install_append() {
install -D ${S}/redhat/watchdog.init ${D}/${sysconfdir}/init.d/watchdog.sh
}
+
+python () {
+ if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
+ d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
+}
--
1.7.9.5
More information about the Openembedded-core
mailing list