3
0

cfg 595 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. if test x"$TERM" = x"" -o x"$TERM" = x"unknown"; then
  3. TERM="linux"
  4. echo "* Setting TERM='$TERM'"
  5. fi
  6. export TERM
  7. ttyname=`tty`
  8. ttybase="${ttyname%%[0123456789]*}" # strip numeric tail
  9. if test x"$ttybase" = x"/dev/vc/" -o x"$ttybase" = x"/dev/tty"; then
  10. echo "* Activating font map"
  11. echo -ne "\033(K" >"$ttyname"
  12. echo "* Loading screen font"
  13. setfont \
  14. -C "$ttyname" \
  15. -m "$PWD/koi8r_to_uni.trans" \
  16. "$PWD/alt08x16+unimap.fnt" \
  17. || echo "setfont exit code: $?"
  18. echo "* Loading keymap"
  19. loadkeys "$PWD/unicode_cyrillic.keymap" \
  20. || echo "loadkeys exit code: $?"
  21. fi