diff options
Diffstat (limited to 'meta-oe/recipes-extended/zram/zram_0.2.bb')
| -rw-r--r-- | meta-oe/recipes-extended/zram/zram_0.2.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-oe/recipes-extended/zram/zram_0.2.bb b/meta-oe/recipes-extended/zram/zram_0.2.bb index b4b3a27b2b..800dd6b7c4 100644 --- a/meta-oe/recipes-extended/zram/zram_0.2.bb +++ b/meta-oe/recipes-extended/zram/zram_0.2.bb | |||
| @@ -21,17 +21,17 @@ do_install () { | |||
| 21 | # Install systemd related configuration file | 21 | # Install systemd related configuration file |
| 22 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 22 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 23 | install -d ${D}${sysconfdir}/init.d | 23 | install -d ${D}${sysconfdir}/init.d |
| 24 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram | 24 | install -m 0755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/zram |
| 25 | fi | 25 | fi |
| 26 | 26 | ||
| 27 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 27 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 28 | install -d ${D}${libexecdir} | 28 | install -d ${D}${libexecdir} |
| 29 | install -m 0755 ${WORKDIR}/zram-swap-init ${D}${libexecdir} | 29 | install -m 0755 ${UNPACKDIR}/zram-swap-init ${D}${libexecdir} |
| 30 | install -m 0755 ${WORKDIR}/zram-swap-deinit ${D}${libexecdir} | 30 | install -m 0755 ${UNPACKDIR}/zram-swap-deinit ${D}${libexecdir} |
| 31 | install -d ${D}${systemd_unitdir}/system | 31 | install -d ${D}${systemd_unitdir}/system |
| 32 | install -m 0644 ${WORKDIR}/zram-swap.service ${D}${systemd_unitdir}/system/zram-swap.service | 32 | install -m 0644 ${UNPACKDIR}/zram-swap.service ${D}${systemd_unitdir}/system/zram-swap.service |
| 33 | sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/zram-swap.service | 33 | sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/zram-swap.service |
| 34 | install -m 0644 ${WORKDIR}/dev-zram0.swap ${D}${systemd_unitdir}/system/dev-zram0.swap | 34 | install -m 0644 ${UNPACKDIR}/dev-zram0.swap ${D}${systemd_unitdir}/system/dev-zram0.swap |
| 35 | fi | 35 | fi |
| 36 | } | 36 | } |
| 37 | 37 | ||
