summaryrefslogtreecommitdiffstats
path: root/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-12-09 17:31:23 +0100
committerAnton Gerasimov <anton@advancedtelematic.com>2016-12-20 14:02:34 +0100
commiteff667c136570fa52ed51e2c8d3c38502272b4fb (patch)
tree7d28a575bd7f3ccbd9a3f605f8f904549bcbe074 /recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
parente562aef8830c6d6e12656d9414c35b30bf78b050 (diff)
downloadmeta-updater-eff667c136570fa52ed51e2c8d3c38502272b4fb.tar.gz
Make systemd optional
Diffstat (limited to 'recipes-sota/rvi-sota-client/rvi-sota-client_git.bb')
-rw-r--r--recipes-sota/rvi-sota-client/rvi-sota-client_git.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
index 9a7ec10..a9a9c2c 100644
--- a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
+++ b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
@@ -21,7 +21,7 @@ FILES_${PN} = " \
21 ${bindir}/system_info.sh \ 21 ${bindir}/system_info.sh \
22 ${sysconfdir}/sota_client.version \ 22 ${sysconfdir}/sota_client.version \
23 ${sysconfdir}/sota_certificates \ 23 ${sysconfdir}/sota_certificates \
24 ${systemd_unitdir}/system/sota_client.service \ 24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota_client.service', '', d)} \
25 ${bindir}/sota_ostree.sh \ 25 ${bindir}/sota_ostree.sh \
26 " 26 "
27 27
@@ -134,8 +134,10 @@ do_install() {
134 install -m 0755 run/system_info.sh ${D}${bindir} 134 install -m 0755 run/system_info.sh ${D}${bindir}
135 install -m 0755 run/sota_ostree.sh ${D}${bindir} 135 install -m 0755 run/sota_ostree.sh ${D}${bindir}
136 136
137 install -d ${D}${systemd_unitdir}/system 137 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
138 install -c ${S}/run/sota_client.service ${D}${systemd_unitdir}/system 138 install -d ${D}${systemd_unitdir}/system
139 install -c ${S}/run/sota_client.service ${D}${systemd_unitdir}/system
140 fi
139 141
140 install -d ${D}${sysconfdir} 142 install -d ${D}${sysconfdir}
141 install -c ${S}/run/sota_certificates ${D}${sysconfdir} 143 install -c ${S}/run/sota_certificates ${D}${sysconfdir}