summaryrefslogtreecommitdiffstats
path: root/recipes-ti/ipc
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2019-01-24 01:38:56 +0000
committerDenys Dmytriyenko <denys@ti.com>2019-01-25 19:57:46 +0000
commitcf5c550dc9306bf281562b2225c3cc281246854a (patch)
tree06af446db7e7d817eedba68f1fff2eb84c04e02f /recipes-ti/ipc
parent9debfc6155ac97050cb85833515ef2617919d6de (diff)
downloadmeta-ti-cf5c550dc9306bf281562b2225c3cc281246854a.tar.gz
ti-ipc: install both tiipclad sysvinit initscript and systemd unit file
Since both systemd and update-rc.d classes are inherited, not having a corresponding file results in postinst function to fail, which is a hard error now. Having both init files installed does not affect functionality. Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti/ipc')
-rw-r--r--recipes-ti/ipc/ti-ipc_git.bb13
1 files changed, 4 insertions, 9 deletions
diff --git a/recipes-ti/ipc/ti-ipc_git.bb b/recipes-ti/ipc/ti-ipc_git.bb
index 8b3ac91d..2ebd03fd 100644
--- a/recipes-ti/ipc/ti-ipc_git.bb
+++ b/recipes-ti/ipc/ti-ipc_git.bb
@@ -48,15 +48,10 @@ do_install_append() {
48 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh 48 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
49 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.service 49 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.service
50 50
51 systemd_enabled=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '1', '0', d)} 51 install -d ${D}${systemd_system_unitdir}
52 if [ ${systemd_enabled} -eq 1 ] 52 install -m 0644 ${WORKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
53 then 53 install -d ${D}${sysconfdir}/init.d/
54 install -d ${D}${systemd_system_unitdir} 54 install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
55 install -m 0644 ${WORKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
56 else
57 install -d ${D}${sysconfdir}/init.d/
58 install -c -m 755 ${S}/scripts/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
59 fi
60} 55}
61 56
62do_install_append_dra7xx() { 57do_install_append_dra7xx() {