diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-bsp/keymaps/files/keymap.sh | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/keymaps/files/keymap.sh')
-rwxr-xr-x | meta/recipes-bsp/keymaps/files/keymap.sh | 16 |
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 0000000000..6ebc634266 --- /dev/null +++ b/meta/recipes-bsp/keymaps/files/keymap.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # load keymap, if existing | ||
4 | |||
5 | KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2` | ||
6 | if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then | ||
7 | loadkeys /etc/keymap-$KERNEL_MAJMIN.map | ||
8 | fi | ||
9 | |||
10 | if ( ls "/etc" | grep -q "keymap-extension-${KERNEL_MAJMIN}" ) | ||
11 | then | ||
12 | for extension in `ls -1 /etc/keymap-extension-$KERNEL_MAJMIN*` | ||
13 | do | ||
14 | loadkeys "$extension" | ||
15 | done | ||
16 | fi | ||