diff options
author | Diego Rondini <diego.ml@zoho.com> | 2015-03-18 16:50:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-22 14:42:17 +0000 |
commit | 98487ccb5f10b20509c63238b677a3fd4674e9d0 (patch) | |
tree | 390d0930e62ab1141df61003884cde175b88b158 /meta/recipes-extended/watchdog/watchdog_5.14.bb | |
parent | a1cb3b016bd0fcdbd6e3297ce8839d4a41817d02 (diff) | |
download | poky-98487ccb5f10b20509c63238b677a3fd4674e9d0.tar.gz |
watchdog: Provide and install initscript
Provide and install an initscript for the watchdog package.
In particular:
- watchdog-init.patch adapts redhat initscript to be compatibile with
OpenEmbedded;
- watchdog-conf.patch selects /dev/watchdog as default device;
- changes to the recipe install and configure the initscript.
(From OE-Core rev: 415be16794dfe9122e6eedff950bede2070008ed)
Signed-off-by: Diego Rondini <diego.ml@zoho.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/watchdog/watchdog_5.14.bb')
-rw-r--r-- | meta/recipes-extended/watchdog/watchdog_5.14.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-extended/watchdog/watchdog_5.14.bb b/meta/recipes-extended/watchdog/watchdog_5.14.bb index c77d91dcdd..9ec0a8e84a 100644 --- a/meta/recipes-extended/watchdog/watchdog_5.14.bb +++ b/meta/recipes-extended/watchdog/watchdog_5.14.bb | |||
@@ -10,11 +10,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ecc0551bf54ad97f6b541720f84d6569" | |||
10 | 10 | ||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \ | 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \ |
12 | file://fixsepbuild.patch \ | 12 | file://fixsepbuild.patch \ |
13 | file://fix-ping-failure.patch" | 13 | file://fix-ping-failure.patch \ |
14 | file://watchdog-init.patch \ | ||
15 | file://watchdog-conf.patch" | ||
14 | 16 | ||
15 | SRC_URI[md5sum] = "5b2dba0c593942f4acc100bca0d560c4" | 17 | SRC_URI[md5sum] = "5b2dba0c593942f4acc100bca0d560c4" |
16 | SRC_URI[sha256sum] = "620b2f49e9879f2e85c73d4c1f422f9101e6b38e824fea2414befd8bb6866ad1" | 18 | SRC_URI[sha256sum] = "620b2f49e9879f2e85c73d4c1f422f9101e6b38e824fea2414befd8bb6866ad1" |
17 | 19 | ||
18 | inherit autotools | 20 | inherit autotools |
21 | inherit update-rc.d | ||
22 | |||
23 | INITSCRIPT_NAME = "watchdog.sh" | ||
24 | INITSCRIPT_PARAMS = "start 15 1 2 3 4 5 . stop 85 0 6 ." | ||
19 | 25 | ||
20 | RRECOMMENDS_${PN} = "kernel-module-softdog" | 26 | RRECOMMENDS_${PN} = "kernel-module-softdog" |
27 | |||
28 | do_install_append() { | ||
29 | install -D ${S}/redhat/watchdog.init ${D}/${sysconfdir}/init.d/watchdog.sh | ||
30 | } | ||