about summary refs log tree commit diff
path: root/core-services/06-console-setup.sh
blob: 4077f489eaab81014d7ef3a44d8b0d12700b1053 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# vim: set ts=4 sw=4 et:

[ -n "$VIRTUALIZATION" ] && return 0

if [ -n "$FONT" ]; then
    msg "Setting up TTYs font to '${FONT}'...\n"
    for i in /dev/tty[0-6]; do
        setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} $FONT -C $i
    done
fi

if [ -n "$KEYMAP" ]; then
    msg "Setting up keymap to '${KEYMAP}'...\n"
    loadkeys -q -u ${KEYMAP}
fi