From 17ffdaa698c50610dd941d882ee12e77af4c9161 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Mon, 26 Mar 2012 18:24:32 +0200 Subject: keymaps: import systemd support from meta-shr layer Signed-off-by: Martin Jansa --- meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service | 9 +++++++++ meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service create mode 100644 meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend (limited to 'meta-oe/recipes-bsp') diff --git a/meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service b/meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service new file mode 100644 index 000000000..414ad0cf0 --- /dev/null +++ b/meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service @@ -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 diff --git a/meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend b/meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend new file mode 100644 index 000000000..b144e9f16 --- /dev/null +++ b/meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend @@ -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" -- cgit v1.2.3-54-g00ecf