diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2014-09-25 16:48:37 +0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-09-26 05:42:54 +0200 |
| commit | 3468c59c5cc382a66621bace78648479dc853db0 (patch) | |
| tree | e8e676e8c0759e49241b7845ddc5b1481dad07b3 /meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb | |
| parent | 9ff03613176e6468d612ae95a392df583cd8f7ba (diff) | |
| download | meta-openembedded-3468c59c5cc382a66621bace78648479dc853db0.tar.gz | |
smartmontools: fix for its SysV init script
Changes include:
1. Make it run at runlevel 2, 3, 4 and 5 by default.
2. Add /etc/default/smartmontools, just as Ubuntu does.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb')
| -rw-r--r-- | meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb b/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb index 9b9454c880..b64b961916 100644 --- a/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb +++ b/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb | |||
| @@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | |||
| 14 | 14 | ||
| 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz \ | 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz \ |
| 16 | file://initd.smartd \ | 16 | file://initd.smartd \ |
| 17 | file://smartmontools.default \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'libcap-ng', 'libcap-ng', '', d)} \ | 20 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'libcap-ng', 'libcap-ng', '', d)} \ |
| @@ -31,9 +32,11 @@ do_install_append () { | |||
| 31 | #install the init.d/smartd | 32 | #install the init.d/smartd |
| 32 | install -d ${D}${sysconfdir}/init.d | 33 | install -d ${D}${sysconfdir}/init.d |
| 33 | install -p -m 0755 ${WORKDIR}/initd.smartd ${D}${sysconfdir}/init.d/smartd | 34 | install -p -m 0755 ${WORKDIR}/initd.smartd ${D}${sysconfdir}/init.d/smartd |
| 35 | install -d ${D}${sysconfdir}/default | ||
| 36 | install -p -m 0644 ${WORKDIR}/smartmontools.default ${D}${sysconfdir}/default/smartmontools | ||
| 34 | } | 37 | } |
| 35 | 38 | ||
| 36 | INITSCRIPT_NAME = "smartd" | 39 | INITSCRIPT_NAME = "smartd" |
| 37 | INITSCRIPT_PARAMS = "start 60 . stop 60 0 1 2 3 4 5 6 ." | 40 | INITSCRIPT_PARAMS = "start 60 2 3 4 5 . stop 60 0 1 6 ." |
| 38 | 41 | ||
| 39 | RDEPENDS_${PN} += "mailx" | 42 | RDEPENDS_${PN} += "mailx" |
