# vim: set ft=sh:
run_hook ()
{
    if [ -e /keymap.bin ]; then
        msg -n ":: Loading keymap..."
        if [ -f /keymap.utf8 ]; then
          mode=-u
          ctrl=G
        else
          mode=-a
          ctrl=@
        fi
        kbd_mode $mode -C /dev/console
        printf "\033%%$ctrl" >> /dev/console
        loadkmap < /keymap.bin
        msg "done."
    fi
}