blob: 6ebc634266f9f786258c1aa398878029da269eab [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2#
3# load keymap, if existing
4
5KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2`
6if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then
7 loadkeys /etc/keymap-$KERNEL_MAJMIN.map
8fi
9
10if ( ls "/etc" | grep -q "keymap-extension-${KERNEL_MAJMIN}" )
11then
12 for extension in `ls -1 /etc/keymap-extension-$KERNEL_MAJMIN*`
13 do
14 loadkeys "$extension"
15 done
16fi