diff options
| -rw-r--r-- | meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb index d0f507e673..c5096c1530 100644 --- a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | |||
| @@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 | |||
| 5 | 5 | ||
| 6 | SRC_URI = "file://shutdown.desktop" | 6 | SRC_URI = "file://shutdown.desktop" |
| 7 | 7 | ||
| 8 | PR = "r1" | ||
| 9 | |||
| 8 | S = "${WORKDIR}" | 10 | S = "${WORKDIR}" |
| 9 | 11 | ||
| 10 | do_install() { | 12 | do_install() { |
| @@ -14,7 +16,8 @@ do_install() { | |||
| 14 | 16 | ||
| 15 | pkg_postinst_${PN} () { | 17 | pkg_postinst_${PN} () { |
| 16 | grep -q qemuarm $D${sysconfdir}/hostname && \ | 18 | grep -q qemuarm $D${sysconfdir}/hostname && \ |
| 17 | sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' | 19 | sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' \ |
| 20 | || true | ||
| 18 | } | 21 | } |
| 19 | 22 | ||
| 20 | inherit allarch | 23 | inherit allarch |
