keymaps: import systemd support from meta-shr layer

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2012-03-26 18:24:32 +02:00
committed by Koen Kooi
parent 803c8d2b08
commit 17ffdaa698
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,9 @@
[Unit]
Description=Loads custom keymap if available
ConditionPathExists=/etc/keymap-2.6.map
[Service]
ExecStart=/usr/bin/loadkeys /etc/keymap-2.6.map
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PRINC := "${@int(PRINC) + 4}"
SRC_URI += " file://keymaps.service"
inherit systemd
SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE = "${PN}.service"