summaryrefslogtreecommitdiff
path: root/scripts/init-top/keymap
diff options
context:
space:
mode:
authorDavid Härdeman <david@austin.(none)>2007-04-12 21:56:32 +0200
committerDavid Härdeman <david@austin.(none)>2007-04-12 21:56:32 +0200
commit1541218fe148cfae9c3a4ce84e7fd6692f3d2028 (patch)
tree94ed1a69e1aea03c37cfde1237c64a54e00e3469 /scripts/init-top/keymap
parentfdbdb7193427633c6ac8574f5416058b3b70e305 (diff)
downloadinitramfs-tools-1541218fe148cfae9c3a4ce84e7fd6692f3d2028.tar.gz
initramfs-tools-1541218fe148cfae9c3a4ce84e7fd6692f3d2028.zip
Add support for loading keymaps. (closes: 337663)
Diffstat (limited to 'scripts/init-top/keymap')
-rwxr-xr-xscripts/init-top/keymap27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/init-top/keymap b/scripts/init-top/keymap
new file mode 100755
index 0000000..f011abf
--- /dev/null
+++ b/scripts/init-top/keymap
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+PREREQ=""
+prereqs()
+{
+ echo "$PREREQ"
+}
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+OPTS="-q"
+
+# Should terminal be in UTF8 mode?
+if [ -x /bin/kbd_mode ]; then
+ /bin/kbd_mode -u
+ OPTS="${OPTS} -u"
+fi
+
+# Load custom keymap
+if [ -x /bin/loadkeys -a -r /etc/boottime.kmap.gz ]; then
+ loadkeys ${OPTS} /etc/boottime.kmap.gz
+fi