diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2006-05-08 22:46:07 +0200 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2006-05-08 22:46:07 +0200 |
commit | 9114900c15b343c2e5585abe34d0e259f8d86478 (patch) | |
tree | 16eac8a79633f0e07ea0d0656b4798a45257919b /hooks/keymap | |
parent | 7c6776156d4b9513510827feecc64bc85ff88e64 (diff) | |
download | mkinitcpio-9114900c15b343c2e5585abe34d0e259f8d86478.tar.gz mkinitcpio-9114900c15b343c2e5585abe34d0e259f8d86478.tar.xz |
'added firmware and keymap hooks'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@85 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'hooks/keymap')
-rw-r--r-- | hooks/keymap | 21 |
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." +} |