/sbin/setsysfont on startup

Sergey mafia_rgd at mail.ru
Tue Dec 6 09:28:23 UTC 2005


/sbin/setsysfont which is called by /etc/rc.sysinit sets the specified font 
and acm parameters on current terminal only, which is usually tty1. It is 
advisable to alter the script so that it would change the font on all ttys 
that might be used. Commonly those are tty1-tty6 (alt-F1-F6).

It is very important for locales, since many international users use font 
display maps, such as koi2alt for example.

I have put the following code into the /etc/rc.d/rc.local:

ltty=$(/usr/bin/tty)
source /etc/sysconfig/i18n

for i in /dev/tty[1-6]; do
 [ "$ltty" = "$i" ] && continue
 /bin/setfont $SYSFONT -m $SYSFONTACM -C $i
 echo -ne "\E(K" 2>/dev/null >$i
done




More information about the users mailing list