blob: 0f63e5233fab5fb4f62ba0527505ba1845e4ad6c [file] [log] [blame]
Denys Vlasenkof5c2f722009-11-08 00:55:39 +01001#!/bin/sh
2
3if test x"$TERM" = x"" -o x"$TERM" = x"unknown"; then
4 TERM="linux"
5 echo "* Setting TERM='$TERM'"
6fi
7export TERM
8
9ttyname=`tty`
10ttybase="${ttyname%%[0123456789]*}" # strip numeric tail
11
12if 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"
26fi