diff options
| -rw-r--r-- | meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb index c5096c1530..773b438054 100644 --- a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | |||
| @@ -12,11 +12,13 @@ S = "${WORKDIR}" | |||
| 12 | do_install() { | 12 | do_install() { |
| 13 | install -d ${D}${datadir}/applications | 13 | install -d ${D}${datadir}/applications |
| 14 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ | 14 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ |
| 15 | |||
| 16 | sed -i ${D}${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)#Exec=${base_sbindir}/\1#' | ||
| 15 | } | 17 | } |
| 16 | 18 | ||
| 17 | pkg_postinst_${PN} () { | 19 | pkg_postinst_${PN} () { |
| 18 | grep -q qemuarm $D${sysconfdir}/hostname && \ | 20 | grep -q qemuarm $D${sysconfdir}/hostname && \ |
| 19 | sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' \ | 21 | sed -i $D${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)/halt#Exec=\1/reboot#' \ |
| 20 | || true | 22 | || true |
| 21 | } | 23 | } |
| 22 | 24 | ||
