summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-19 08:01:27 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-19 08:01:27 +0000
commit1cc1ef0d642e9769a8e05346aa46de921aab188e (patch)
tree9ce6f6b5d86f3615656edc82611a717617f3d1a4 /packages/initscripts/initscripts-1.0
parent21dba189358012ec7d24bb0bfb15e2d3310412f5 (diff)
initscripts: Add support for keymap extensions to /etc/init.d/keymap
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rwxr-xr-xpackages/initscripts/initscripts-1.0/keymap8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/keymap b/packages/initscripts/initscripts-1.0/keymap
index 792a31d6da..6ebc634266 100755
--- a/packages/initscripts/initscripts-1.0/keymap
+++ b/packages/initscripts/initscripts-1.0/keymap
@@ -6,3 +6,11 @@ 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