summaryrefslogtreecommitdiffstats
path: root/hooks/keymap
blob: d00df9b162b52ccebd83c523be2bb86a705857dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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."
}