3 [ -n "$DRACUT_SYSTEMD" ] && exit 0
5 if [ -x $systemdutildir/systemd-vconsole-setup
]; then
6 $systemdutildir/systemd-vconsole-setup
"$@"
9 [ -e /etc
/vconsole.conf
] && .
/etc
/vconsole.conf
11 DEFAULT_FONT
=LatArCyrHeb-16
12 DEFAULT_KEYMAP
=/etc
/sysconfig
/console
/default.kmap
17 [ "${UNICODE}" = 1 ] && param
=-u || param
=-a
24 if [ "${UNICODE}" = 1 ]; then
36 if [ -z "${KEYMAP}" ]; then
37 [ -f "${DEFAULT_KEYMAP}" ] && KEYMAP
=${DEFAULT_KEYMAP}
40 [ -n "${KEYMAP}" ] ||
return 1
42 [ "${UNICODE}" = 1 ] && utf_switch
=-u
44 loadkeys
-q ${utf_switch} ${KEYMAP} ${EXT_KEYMAPS}
48 local dev
=$1; local trans
=''; local uni
=''
50 [ -z "${FONT}" ] && FONT
=${DEFAULT_FONT}
51 [ -n "${FONT_MAP}" ] && trans
="-m ${FONT_MAP}"
52 [ -n "${FONT_UNIMAP}" ] && uni
="-u ${FONT_UNIMAP}"
54 setfont
${FONT} -C ${dev} ${trans} ${uni}
73 echo "Usage: $0 device" >&2
80 if ! [ -t ${fd} ]; then
81 echo "ERROR: File descriptor not opened: ${fd}" >&2