mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
shutdown-desktop: ensure the postinst script succeeds
When the hostname isn't qemuarm the grep fails so the postinst fails. Stop this happening by explicitly evaluating true. [YOCTO #3224] (From OE-Core rev: 8848ea6793ddaab61c9dad250ec578d68d7d087d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
31e19a34a5
commit
1164f70c34
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
|
||||
|
||||
SRC_URI = "file://shutdown.desktop"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
@@ -14,7 +16,8 @@ do_install() {
|
||||
|
||||
pkg_postinst_${PN} () {
|
||||
grep -q qemuarm $D${sysconfdir}/hostname && \
|
||||
sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/'
|
||||
sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' \
|
||||
|| true
|
||||
}
|
||||
|
||||
inherit allarch
|
||||
|
||||
Reference in New Issue
Block a user