mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
27 lines
752 B
Bash
27 lines
752 B
Bash
# vim: set ft=sh:
|
|
run_hook ()
|
|
{
|
|
msg -n ":: Loading keymap..."
|
|
. /keymap
|
|
if [ "${UTF8}" = "yes" ]; then
|
|
/bin/kbd_mode -u
|
|
printf "\033%%G" >> /dev/console
|
|
[ -n "${KEYMAP}" ] && /bin/loadkeys -q -u ${KEYMAP}
|
|
else
|
|
/bin/kbd_mode -a
|
|
printf "\033%%@" >> /dev/console
|
|
[ -n "${KEYMAP}" ] && /bin/loadkeys -q ${KEYMAP}
|
|
fi
|
|
if [ -n "${CONSOLEFONT}" ]; then
|
|
if [ "${UTF8}" = "yes" ]; then
|
|
CONSOLEMAP=""
|
|
fi
|
|
if [ -n "${CONSOLEMAP}" ]; then
|
|
/bin/setfont -m ${CONSOLEMAP} ${CONSOLEFONT} -C /dev/console
|
|
else
|
|
/bin/setfont ${CONSOLEFONT} -C /dev/console
|
|
fi
|
|
printf "\033(K" >> /dev/console
|
|
fi
|
|
msg "done."
|
|
}
|