summaryrefslogtreecommitdiffstats
path: root/hooks/keymap
blob: fd53f5fb2d6c42cf61710802eadf45a83617c63b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# vim: set ft=sh:
run_hook ()
{
    msg -n ":: Loading keymap..."
    . /keymap.utf8
    if [ "${UTF8}" = "yes" ]; then
        /usr/bin/kbd_mode -u -C /dev/console
        printf "\033%%G" >> /dev/console
    else
        /usr/bin/kbd_mode -a -C /dev/console
        printf "\033%%@" >> /dev/console
    fi
    /sbin/loadkmap < /keymap.bin
    msg "done."
}