aboutsummaryrefslogtreecommitdiff
path: root/init.d/keymaps.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-26 11:19:22 +0000
committerRoy Marples <roy@marples.name>2009-04-26 11:19:22 +0000
commit1d4818364641c84d0e53fda90a356772299dee8e (patch)
tree06cfac07ee56bf4c20a0b9688846ae608faf6a7f /init.d/keymaps.in
parent0feddbd815b16a23240f45dbdc38b36e3f1559e0 (diff)
Try and set a keymap as early as possible, #169
Diffstat (limited to 'init.d/keymaps.in')
-rw-r--r--init.d/keymaps.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.d/keymaps.in b/init.d/keymaps.in
index 0f30e443..ca35ceb8 100644
--- a/init.d/keymaps.in
+++ b/init.d/keymaps.in
@@ -64,4 +64,10 @@ start()
n=$((${n} + 1))
done
eend 0
+
+ # Save the keymapping for use immediately at boot
+ if [ -w "${RC_LIBDIR}" ]; then
+ mkdir -p "${RC_LIBDIR}"/console
+ dumpkeys >"${RC_LIBDIR}"/console/keymap
+ fi
}