summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/keymap
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-07-22 10:32:10 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-22 10:32:10 +0000
commit6d68b30b2e7e6fa9b1349578a3aa9725ed7882ca (patch)
tree595965c5d2616931a60aee388a5e2cca04d823a2 /packages/initscripts/initscripts-1.0/keymap
parent70a456d4bce1993048edd449e92b0aaa2535784d (diff)
nitscripts: solve the keymap situation in a more generic way to reduce maintenance load
the keymap script is now always installed and checks if there is a matching keymap in /etc General note: this package is a bit monolithic, we may eventually come to a more fine granular build solution, e.g. a (build-time) table where distributions can specify which initscripts they want to appear in the final image.
Diffstat (limited to 'packages/initscripts/initscripts-1.0/keymap')
-rw-r--r--packages/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
new file mode 100644
index 0000000000..792a31d6da
--- /dev/null
+++ b/packages/initscripts/initscripts-1.0/keymap
@@ -0,0 +1,8 @@
+#!/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