]>
Commit | Line | Data |
---|---|---|
89221920 AM |
1 | if (tty -s); then |
2 | case $TERM in | |
3 | linux) | |
eb150c07 | 4 | if [ -f /etc/sysconfig/console ]; then |
81be7d90 | 5 | . /etc/sysconfig/console |
6 | ||
eb150c07 | 7 | if [ "$CONSOLEMAP" != "" ]; then |
81be7d90 | 8 | # Switch the G0 charset map from the default ISO-8859-1 |
9 | # to the user-defined map (loaded with consolefonts) | |
2b957e53 | 10 | if [ -w /proc/$$/fd/0 -a -t 0 ]; then |
61ae899a AM |
11 | echo -n -e '\033(K' > /proc/$$/fd/0 |
12 | else | |
13 | echo -n -e '\033(K' > /dev/tty | |
14 | fi | |
81be7d90 | 15 | fi |
ed78c3ee AF |
16 | |
17 | fi | |
81be7d90 | 18 | ;; |
89221920 AM |
19 | esac |
20 | fi |