diff options
Diffstat (limited to 'meta/recipes-extended/watchdog/watchdog-config.bb')
-rw-r--r-- | meta/recipes-extended/watchdog/watchdog-config.bb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/recipes-extended/watchdog/watchdog-config.bb b/meta/recipes-extended/watchdog/watchdog-config.bb index 8bf40f0f0e..e826a7d4a6 100644 --- a/meta/recipes-extended/watchdog/watchdog-config.bb +++ b/meta/recipes-extended/watchdog/watchdog-config.bb | |||
@@ -5,7 +5,7 @@ the system." | |||
5 | HOMEPAGE = "http://watchdog.sourceforge.net/" | 5 | HOMEPAGE = "http://watchdog.sourceforge.net/" |
6 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=172030&atid=860194" | 6 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=172030&atid=860194" |
7 | 7 | ||
8 | LICENSE = "MIT-X" | 8 | LICENSE = "MIT" |
9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
@@ -13,8 +13,15 @@ SRC_URI = " \ | |||
13 | file://watchdog.conf \ | 13 | file://watchdog.conf \ |
14 | " | 14 | " |
15 | 15 | ||
16 | # The default value is 60 seconds when null. | ||
17 | WATCHDOG_TIMEOUT ??= "" | ||
18 | |||
16 | do_install() { | 19 | do_install() { |
17 | install -Dm 0644 ${WORKDIR}/watchdog.default ${D}${sysconfdir}/default/watchdog | 20 | install -Dm 0644 ${UNPACKDIR}/watchdog.default ${D}${sysconfdir}/default/watchdog |
18 | install -Dm 0644 ${WORKDIR}/watchdog.conf ${D}${sysconfdir}/watchdog.conf | 21 | install -Dm 0644 ${UNPACKDIR}/watchdog.conf ${D}${sysconfdir}/watchdog.conf |
22 | |||
23 | if [ -n "${WATCHDOG_TIMEOUT}" ]; then | ||
24 | echo "watchdog-timeout = ${WATCHDOG_TIMEOUT}" >> ${D}/etc/watchdog.conf | ||
25 | fi | ||
19 | } | 26 | } |
20 | 27 | ||