mirror of
https://git.yoctoproject.org/poky
synced 2026-03-12 10:19:44 +01:00
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
668 B
BlitzBasic
25 lines
668 B
BlitzBasic
SUMMARY = "Provides an icon to shut down the system cleanly"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "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
|