summaryrefslogtreecommitdiff
path: root/examples/var_service/getty_tty1/cfg
blob: ab973f738f5283bd5f72dbaa08b25b908bef40b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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 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 exit code: $?"

	echo "* Loading keymap"
	loadkeys "$PWD/unicode_cyrillic.keymap" \
	|| echo "loadkeys exit code: $?"
fi