mirror of
https://github.com/sheumann/hush.git
synced 2024-08-17 15:29:35 +00:00
27 lines
604 B
Bash
Executable File
27 lines
604 B
Bash
Executable File
#!/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
|
|
echo "* Activating Cyrillic KOI8-R -> CP866 font map"
|
|
echo -ne "\033(K" >"$ttyname"
|
|
|
|
echo "* Loading screen font"
|
|
setfont \
|
|
-C "$ttyname" \
|
|
-m "$PWD/koi8r_to_uni.trans" \
|
|
"$PWD/alt08x16+unimap.fnt" \
|
|
|| echo "! setfont failure"
|
|
|
|
echo "* Loading keymap"
|
|
loadkeys "$PWD/ru_koi8r.keymap" \
|
|
|| echo "! loadkeys failure"
|
|
fi
|