diff options
Diffstat (limited to 'abs/core/kbd/keymap_hook')
-rw-r--r-- | abs/core/kbd/keymap_hook | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/abs/core/kbd/keymap_hook b/abs/core/kbd/keymap_hook new file mode 100644 index 0000000..414338b --- /dev/null +++ b/abs/core/kbd/keymap_hook @@ -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." +} |