summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rw-r--r--hooks/keymap21
1 files changed, 21 insertions, 0 deletions
diff --git a/hooks/keymap b/hooks/keymap
new file mode 100644
index 0000000..d00df9b
--- /dev/null
+++ b/hooks/keymap
@@ -0,0 +1,21 @@
+# vim: set ft=sh:
+run_hook ()
+{
+ msg -n ":: Loading keymap..."
+ . /keymap
+ if [ "$KEYMAP" != "" ]; then
+ /bin/loadkeys -q $KEYMAP
+ fi
+ # If locale is *.utf set console to Unicode mode
+ if [ "$UTF8" = "yes" ]; then
+ /bin/kbd_mode -u
+ /bin/dumpkeys | /bin/loadkeys --unicode
+ echo -ne "\e%G" >> /dev/console
+ fi
+ if [ "$CONSOLEMAP" != "" ]; then
+ /bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/console
+ else
+ /bin/setfont $CONSOLEFONT -C /dev/console
+ fi
+ msg "done."
+}