diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-sato/shutdown-desktop | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-sato/shutdown-desktop')
-rw-r--r-- | meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | 25 | ||||
-rw-r--r-- | meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop | 10 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb new file mode 100644 index 0000000000..ebdd6d123a --- /dev/null +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "Provides an icon to shut down the system cleanly" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | |||
6 | SRC_URI = "file://shutdown.desktop" | ||
7 | |||
8 | PR = "r1" | ||
9 | |||
10 | S = "${WORKDIR}" | ||
11 | |||
12 | do_install() { | ||
13 | install -d ${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#' | ||
17 | } | ||
18 | |||
19 | pkg_postinst_${PN} () { | ||
20 | grep -q qemuarm $D${sysconfdir}/hostname && \ | ||
21 | sed -i $D${datadir}/applications/shutdown.desktop -e 's#^Exec=\(.*\)/halt#Exec=\1/reboot#' \ | ||
22 | || true | ||
23 | } | ||
24 | |||
25 | inherit allarch | ||
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop b/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop new file mode 100644 index 0000000000..662659afc2 --- /dev/null +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop | |||
@@ -0,0 +1,10 @@ | |||
1 | [Desktop Entry] | ||
2 | Encoding=UTF-8 | ||
3 | Type=Application | ||
4 | Name=Shutdown | ||
5 | Comment=Close down the machine safely | ||
6 | Exec=poweroff | ||
7 | Icon=system-shutdown | ||
8 | Terminal=false | ||
9 | Categories=Utility; | ||
10 | StartupNotify=true | ||