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