2009-11-08 05:25:39 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test x"$TERM" = x"" -o x"$TERM" = x"unknown"; then
|
|
|
|
TERM="linux"
|
|
|
|
echo "* Setting TERM='$TERM'"
|
|
|
|
fi
|
|
|
|
export TERM
|
|
|
|
|
|
|
|
ttyname=`tty`
|
|
|
|
ttybase="${ttyname%%[0123456789]*}" # strip numeric tail
|
|
|
|
|
|
|
|
if test x"$ttybase" = x"/dev/vc/" -o x"$ttybase" = x"/dev/tty"; then
|
2018-06-23 17:25:13 +05:30
|
|
|
echo "* Activating font map"
|
2009-11-08 05:25:39 +05:30
|
|
|
echo -ne "\033(K" >"$ttyname"
|
|
|
|
|
|
|
|
echo "* Loading screen font"
|
|
|
|
setfont \
|
|
|
|
-C "$ttyname" \
|
|
|
|
-m "$PWD/koi8r_to_uni.trans" \
|
|
|
|
"$PWD/alt08x16+unimap.fnt" \
|
2018-06-23 17:25:13 +05:30
|
|
|
|| echo "setfont exit code: $?"
|
2009-11-08 05:25:39 +05:30
|
|
|
|
|
|
|
echo "* Loading keymap"
|
2018-06-23 17:25:13 +05:30
|
|
|
loadkeys "$PWD/unicode_cyrillic.keymap" \
|
|
|
|
|| echo "loadkeys exit code: $?"
|
2009-11-08 05:25:39 +05:30
|
|
|
fi
|