examples: update /var/service/getty for Unicode ttys

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-06-23 13:55:13 +02:00
parent 34254f9dde
commit e56e091d65
5 changed files with 206 additions and 194 deletions

View File

@@ -10,7 +10,7 @@ ttyname=`tty`
ttybase="${ttyname%%[0123456789]*}" # strip numeric tail
if test x"$ttybase" = x"/dev/vc/" -o x"$ttybase" = x"/dev/tty"; then
echo "* Activating Cyrillic KOI8-R -> CP866 font map"
echo "* Activating font map"
echo -ne "\033(K" >"$ttyname"
echo "* Loading screen font"
@@ -18,9 +18,9 @@ if test x"$ttybase" = x"/dev/vc/" -o x"$ttybase" = x"/dev/tty"; then
-C "$ttyname" \
-m "$PWD/koi8r_to_uni.trans" \
"$PWD/alt08x16+unimap.fnt" \
|| echo "! setfont failure"
|| echo "setfont exit code: $?"
echo "* Loading keymap"
loadkeys "$PWD/ru_koi8r.keymap" \
|| echo "! loadkeys failure"
loadkeys "$PWD/unicode_cyrillic.keymap" \
|| echo "loadkeys exit code: $?"
fi