diff options
Diffstat (limited to 'recipes/keymaps/files/keymap')
-rw-r--r-- | recipes/keymaps/files/keymap | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/keymaps/files/keymap b/recipes/keymaps/files/keymap new file mode 100644 index 0000000000..6ebc634266 --- /dev/null +++ b/recipes/keymaps/files/keymap @@ -0,0 +1,16 @@ +#!/bin/sh +# +# load keymap, if existing + +KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2` +if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then + loadkeys /etc/keymap-$KERNEL_MAJMIN.map +fi + +if ( ls "/etc" | grep -q "keymap-extension-${KERNEL_MAJMIN}" ) +then + for extension in `ls -1 /etc/keymap-extension-$KERNEL_MAJMIN*` + do + loadkeys "$extension" + done +fi |