diff options
-rw-r--r-- | meta-oe/recipes-extended/haveged/haveged_1.9.6.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/haveged/haveged_1.9.6.bb b/meta-oe/recipes-extended/haveged/haveged_1.9.6.bb index 0189e19c09..a2f0d07f24 100644 --- a/meta-oe/recipes-extended/haveged/haveged_1.9.6.bb +++ b/meta-oe/recipes-extended/haveged/haveged_1.9.6.bb | |||
@@ -35,6 +35,12 @@ do_install_append() { | |||
35 | # The exit status is 143 when the service is stopped | 35 | # The exit status is 143 when the service is stopped |
36 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 36 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
37 | sed -i '/ExecStart/a SuccessExitStatus=143' ${D}${systemd_system_unitdir}/haveged.service | 37 | sed -i '/ExecStart/a SuccessExitStatus=143' ${D}${systemd_system_unitdir}/haveged.service |
38 | # Hybrid systemd-sysvinit distros must install the initscript manually | ||
39 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
40 | install -d ${D}${INIT_D_DIR} | ||
41 | sed -e "s,@SBINDIR@,${sbindir},g" <${S}/init.d/sysv.redhat >${D}${INIT_D_DIR}/haveged | ||
42 | chmod 755 ${D}${INIT_D_DIR}/haveged | ||
43 | fi | ||
38 | fi | 44 | fi |
39 | } | 45 | } |
40 | 46 | ||