summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/keymaps/files/keymap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/keymaps/files/keymap.sh')
-rwxr-xr-xmeta/recipes-bsp/keymaps/files/keymap.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-bsp/keymaps/files/keymap.sh b/meta/recipes-bsp/keymaps/files/keymap.sh
new file mode 100755
index 0000000..6ebc634
--- /dev/null
+++ b/meta/recipes-bsp/keymaps/files/keymap.sh
@@ -0,0 +1,16 @@
1#!/bin/sh
2#
3# load keymap, if existing
4
5KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2`
6if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then
7 loadkeys /etc/keymap-$KERNEL_MAJMIN.map
8fi
9
10if ( ls "/etc" | grep -q "keymap-extension-${KERNEL_MAJMIN}" )
11then
12 for extension in `ls -1 /etc/keymap-extension-$KERNEL_MAJMIN*`
13 do
14 loadkeys "$extension"
15 done
16fi