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