]> git.pld-linux.org Git - packages/console-tools.git/blob - console.sh
5a878fd765f08c7e07ee2d724334906b9fe06c23
[packages/console-tools.git] / console.sh
1 [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
2
3 tty -s
4 if [ $? -eq 0 ]; then
5  case $TERM in
6   linux)
7         if [ -f /etc/sysconfig/console ]; then
8                 . /etc/sysconfig/console
9
10                 case "$LANG" in
11                         *.utf8|*.UTF-8)
12                                 [ -x /bin/unicode_start ] && /sbin/consoletype fg && /bin/unicode_start
13                         ;;
14                 esac
15
16                 if [ "$CONSOLEMAP" != "" ]; then
17                         # Switch the G0 charset map from the default ISO-8859-1
18                         # to the user-defined map (loaded with consolefonts)
19                         if [ -w /proc/$$/fd/0 -a -t 0 ]; then
20                                 echo -n -e '\033(K' > /proc/$$/fd/0
21                         else
22                                 echo -n -e '\033(K' > /dev/tty
23                         fi
24                 fi
25                 
26         fi
27         ;;
28  esac
29 fi
This page took 0.044934 seconds and 3 git commands to generate.