aboutsummaryrefslogtreecommitdiff
path: root/init.d/keymaps.in
diff options
context:
space:
mode:
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
}