diff options
Diffstat (limited to 'meta/recipes-devtools/run-postinsts')
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 9 |
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] |
8 | Type=oneshot | 8 | Type=oneshot |
9 | ExecStart=#SBINDIR#/run-postinsts | 9 | ExecStart=#SBINDIR#/run-postinsts |
10 | ExecStartPost=#BASE_BINDIR#/systemctl --no-reload disable run-postinsts.service | 10 | ExecStartPost=#BASE_BINDIR#/systemctl disable run-postinsts.service |
11 | RemainAfterExit=yes | 11 | RemainAfterExit=yes |
12 | TimeoutSec=0 | 12 | TimeoutSec=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 | ||
11 | S = "${WORKDIR}" | 11 | S = "${WORKDIR}/sources" |
12 | UNPACKDIR = "${S}" | ||
12 | 13 | ||
13 | inherit allarch systemd update-rc.d | 14 | inherit allarch systemd update-rc.d |
14 | 15 | ||
@@ -29,13 +30,13 @@ do_compile () { | |||
29 | 30 | ||
30 | do_install() { | 31 | do_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' \ |