summaryrefslogtreecommitdiff
path: root/recipes/keymaps/files/keymap
blob: 6ebc634266f9f786258c1aa398878029da269eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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