diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-03-26 18:24:32 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-29 16:14:37 +0200 |
commit | 17ffdaa698c50610dd941d882ee12e77af4c9161 (patch) | |
tree | 4656588ea48a6da2a7c665b66341e4ff17d2ab76 /meta-oe/recipes-bsp | |
parent | 803c8d2b08881460b07c9798036c8b5101d6e3c9 (diff) | |
download | meta-openembedded-17ffdaa698c50610dd941d882ee12e77af4c9161.tar.gz |
keymaps: import systemd support from meta-shr layer
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-bsp')
-rw-r--r-- | meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service | 9 | ||||
-rw-r--r-- | meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend | 8 |
2 files changed, 17 insertions, 0 deletions
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 @@ | |||
1 | [Unit] | ||
2 | Description=Loads custom keymap if available | ||
3 | ConditionPathExists=/etc/keymap-2.6.map | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=/usr/bin/loadkeys /etc/keymap-2.6.map | ||
7 | |||
8 | [Install] | ||
9 | 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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | PRINC := "${@int(PRINC) + 4}" | ||
3 | |||
4 | SRC_URI += " file://keymaps.service" | ||
5 | |||
6 | inherit systemd | ||
7 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
8 | SYSTEMD_SERVICE = "${PN}.service" | ||