]> git.pld-linux.org Git - packages/console-tools.git/blob - console.sh
7a8cefcf8d55ac7b773d0cf94076fd7ab152aaff
[packages/console-tools.git] / console.sh
1
2 case $(tty) in
3 (/dev/tty[0-9]|/dev/tty[0-9][0-9]|/dev/vc/*)
4
5         if [ -f /etc/sysconfig/console ]
6         then
7                 . /etc/sysconfig/console
8         
9                 if [ "$CONSOLEMAP" != "" ]
10                 then
11                         # Switch the G0 charset map from the default ISO-8859-1
12                         # to the user-defined map (loaded with consolefonts)
13                         if [ -w /proc/$$/fd/0 ]; then
14                                 echo -n -e '\033(K' > /proc/$$/fd/0
15                         else
16                                 echo -n -e '\033(K' > /dev/tty
17                         fi
18                 fi
19                 
20         fi
21         ;;
22 esac
This page took 0.061632 seconds and 2 git commands to generate.