diff options
Diffstat (limited to 'packages/keymaps/files/keymap')
-rw-r--r-- | packages/keymaps/files/keymap | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/keymaps/files/keymap b/packages/keymaps/files/keymap new file mode 100644 index 0000000000..6ebc634266 --- /dev/null +++ b/packages/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 |