diff options
author | Bill Nottingham <notting@redhat.com> | 2001-03-30 17:34:36 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-03-30 17:34:36 +0000 |
commit | 0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277 (patch) | |
tree | 96cb1e35d2ccfde44b5f48dce6a1b6625791f56c /lang.sh | |
parent | bfba5b9a7bcef56b48695bda2eaa7423f48c4db1 (diff) | |
download | initscripts-0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277.tar initscripts-0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277.tar.gz initscripts-0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277.tar.bz2 initscripts-0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277.tar.xz initscripts-0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277.zip |
fix su errors
don't turn locale settings of 'C' into en_US
Diffstat (limited to 'lang.sh')
-rwxr-xr-x | lang.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -37,10 +37,8 @@ if [ "$sourced" = 1 ]; then if [ -n "$SYSFONTACM" ]; then case $SYSFONTACM in iso01*|iso02*|iso15*|koi*|latin2-ucw*) - if [ "$TERM" = "linux" ]; then - if ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1; then - echo -n -e '\033(K' > /proc/$$/fd/0 - fi + if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0 fi ;; esac |