a22ee50865
(From OE-Core rev: bbd88aebcabbb19c27a7d752d4a5b8ad9ff9412e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
26 lines
754 B
BlitzBasic
26 lines
754 B
BlitzBasic
SUMMARY = "Provides an icon to shut down the system cleanly"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SRC_URI = "file://shutdown.desktop"
|
|
|
|
PR = "r1"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
do_install() {
|
|
install -d ${D}${datadir}/applications
|
|
install -m 0644 shutdown.desktop ${D}${datadir}/applications/
|
|
|
|
sed -i ${D}${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)#Exec=${base_sbindir}/\1#'
|
|
}
|
|
|
|
pkg_postinst_${PN} () {
|
|
grep -q qemuarm $D${sysconfdir}/hostname && \
|
|
sed -i $D${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)/halt#Exec=\1/reboot#' \
|
|
|| true
|
|
}
|
|
|
|
inherit allarch
|