M7350/oe-core/meta/recipes-bsp/keymaps/files/keymap.sh
2024-09-09 08:52:07 +00:00

17 lines
348 B
Bash
Executable File

#!/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