1SUMMARY = "Provides an icon to shut down the system cleanly" 2LICENSE = "MIT" 3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 4 5SRC_URI = "file://shutdown.desktop" 6 7 8S = "${WORKDIR}/sources" 9UNPACKDIR = "${S}" 10 11do_install() { 12 install -d ${D}${datadir}/applications 13 install -m 0644 shutdown.desktop ${D}${datadir}/applications/ 14 15 sed -i ${D}${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)#Exec=${base_sbindir}/\1#' 16} 17 18pkg_postinst:${PN} () { 19 grep -q qemuarm $D${sysconfdir}/hostname && \ 20 sed -i $D${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)/halt#Exec=\1/reboot#' \ 21 || true 22} 23 24inherit allarch 25