mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 15:40:01 +00:00
haveged: Fix missing initscript when both systemd and sysvinit are enabled
Haveged's makefile installs either one or the other. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
deb24f5849
commit
bc7972d7b9
@@ -35,6 +35,12 @@ do_install_append() {
|
|||||||
# The exit status is 143 when the service is stopped
|
# The exit status is 143 when the service is stopped
|
||||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||||
sed -i '/ExecStart/a SuccessExitStatus=143' ${D}${systemd_system_unitdir}/haveged.service
|
sed -i '/ExecStart/a SuccessExitStatus=143' ${D}${systemd_system_unitdir}/haveged.service
|
||||||
|
# Hybrid systemd-sysvinit distros must install the initscript manually
|
||||||
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
||||||
|
install -d ${D}${INIT_D_DIR}
|
||||||
|
sed -e "s,@SBINDIR@,${sbindir},g" <${S}/init.d/sysv.redhat >${D}${INIT_D_DIR}/haveged
|
||||||
|
chmod 755 ${D}${INIT_D_DIR}/haveged
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user