summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/run-postinsts
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/run-postinsts')
-rw-r--r--meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service2
-rw-r--r--meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb9
2 files changed, 6 insertions, 5 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
index b6b81d5c1a..1ce19abcaf 100644
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
@@ -7,7 +7,7 @@ Before=sysinit.target
7[Service] 7[Service]
8Type=oneshot 8Type=oneshot
9ExecStart=#SBINDIR#/run-postinsts 9ExecStart=#SBINDIR#/run-postinsts
10ExecStartPost=#BASE_BINDIR#/systemctl --no-reload disable run-postinsts.service 10ExecStartPost=#BASE_BINDIR#/systemctl disable run-postinsts.service
11RemainAfterExit=yes 11RemainAfterExit=yes
12TimeoutSec=0 12TimeoutSec=0
13 13
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb
index e977942de8..f571e61921 100644
--- a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb
@@ -8,7 +8,8 @@ SRC_URI = "file://run-postinsts \
8 file://run-postinsts.init \ 8 file://run-postinsts.init \
9 file://run-postinsts.service" 9 file://run-postinsts.service"
10 10
11S = "${WORKDIR}" 11S = "${WORKDIR}/sources"
12UNPACKDIR = "${S}"
12 13
13inherit allarch systemd update-rc.d 14inherit allarch systemd update-rc.d
14 15
@@ -29,13 +30,13 @@ do_compile () {
29 30
30do_install() { 31do_install() {
31 install -d ${D}${sbindir} 32 install -d ${D}${sbindir}
32 install -m 0755 ${WORKDIR}/run-postinsts ${D}${sbindir}/ 33 install -m 0755 ${S}/run-postinsts ${D}${sbindir}/
33 34
34 install -d ${D}${sysconfdir}/init.d/ 35 install -d ${D}${sysconfdir}/init.d/
35 install -m 0755 ${WORKDIR}/run-postinsts.init ${D}${sysconfdir}/init.d/run-postinsts 36 install -m 0755 ${S}/run-postinsts.init ${D}${sysconfdir}/init.d/run-postinsts
36 37
37 install -d ${D}${systemd_system_unitdir}/ 38 install -d ${D}${systemd_system_unitdir}/
38 install -m 0644 ${WORKDIR}/run-postinsts.service ${D}${systemd_system_unitdir}/ 39 install -m 0644 ${S}/run-postinsts.service ${D}${systemd_system_unitdir}/
39 40
40 sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ 41 sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \
41 -e 's:#SBINDIR#:${sbindir}:g' \ 42 -e 's:#SBINDIR#:${sbindir}:g' \