Denys Vlasenko | f5c2f72 | 2009-11-08 00:55:39 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | if test x"$TERM" = x"" -o x"$TERM" = x"unknown"; then |
| 4 | TERM="linux" |
| 5 | echo "* Setting TERM='$TERM'" |
| 6 | fi |
| 7 | export TERM |
| 8 | |
| 9 | ttyname=`tty` |
| 10 | ttybase="${ttyname%%[0123456789]*}" # strip numeric tail |
| 11 | |
| 12 | if test x"$ttybase" = x"/dev/vc/" -o x"$ttybase" = x"/dev/tty"; then |
| 13 | echo "* Activating Cyrillic KOI8-R -> CP866 font map" |
| 14 | echo -ne "\033(K" >"$ttyname" |
| 15 | |
| 16 | echo "* Loading screen font" |
| 17 | setfont \ |
| 18 | -C "$ttyname" \ |
| 19 | -m "$PWD/koi8r_to_uni.trans" \ |
| 20 | "$PWD/alt08x16+unimap.fnt" \ |
| 21 | || echo "! setfont failure" |
| 22 | |
| 23 | echo "* Loading keymap" |
| 24 | loadkeys "$PWD/ru_koi8r.keymap" \ |
| 25 | || echo "! loadkeys failure" |
| 26 | fi |