diff options
author | Bill Nottingham <notting@redhat.com> | 2006-10-19 19:44:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-10-19 19:44:16 +0000 |
commit | db147bb0ed160708501ffae23eaf896da0dc7b91 (patch) | |
tree | 4337c2bb2d6edd8d5d32c76b6b1945f5817f9eb5 /lang.sh | |
parent | f87c918914e0a482670d76f17ba94803ccb191bb (diff) | |
download | initscripts-db147bb0ed160708501ffae23eaf896da0dc7b91.tar initscripts-db147bb0ed160708501ffae23eaf896da0dc7b91.tar.gz initscripts-db147bb0ed160708501ffae23eaf896da0dc7b91.tar.bz2 initscripts-db147bb0ed160708501ffae23eaf896da0dc7b91.tar.xz initscripts-db147bb0ed160708501ffae23eaf896da0dc7b91.zip |
backport some fixesr8-31-6
Diffstat (limited to 'lang.sh')
-rwxr-xr-x | lang.sh | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -40,11 +40,13 @@ if [ "$sourced" = 1 ]; then [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET + + consoletype=$(/sbin/consoletype) if [ -n "$CHARSET" ]; then case $CHARSET in 8859-1|8859-2|8859-5|8859-15|koi*) - if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + if [ "$TERM" = "linux" -a "$consoletype" = "vt" ]; then echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0 fi ;; @@ -52,7 +54,7 @@ if [ "$sourced" = 1 ]; then elif [ -n "$SYSFONTACM" ]; then case $SYSFONTACM in iso01*|iso02*|iso05*|iso15*|koi*|latin2-ucw*) - if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + if [ "$TERM" = "linux" -a "$consoletype" = "vt" ]; then echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0 fi ;; @@ -62,11 +64,18 @@ if [ "$sourced" = 1 ]; then case $LANG in *.utf8*|*.UTF-8*) if [ "$TERM" = "linux" ]; then - if [ "`/sbin/consoletype`" = "vt" ]; then + if [ "$consoletype" = "vt" ]; then [ -x /bin/unicode_start ] && /sbin/consoletype fg && /bin/unicode_start $SYSFONT $SYSFONTACM fi fi ;; + *) + if [ "$TERM" = "linux" ]; then + if [ "$consoletype" = "vt" ]; then + [ -x /bin/unicode_stop ] && /sbin/consoletype fg && /bin/unicode_stop + fi + fi + ;; esac fi |