aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-03-30 17:34:36 +0000
committerBill Nottingham <notting@redhat.com>2001-03-30 17:34:36 +0000
commit0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277 (patch)
tree96cb1e35d2ccfde44b5f48dce6a1b6625791f56c
parentbfba5b9a7bcef56b48695bda2eaa7423f48c4db1 (diff)
downloadinitscripts-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
-rwxr-xr-xlang.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/lang.sh b/lang.sh
index e255968b..0a65fdc9 100755
--- a/lang.sh
+++ b/lang.sh
@@ -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