aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-04-19 15:26:04 +0000
committerBill Nottingham <notting@redhat.com>2000-04-19 15:26:04 +0000
commit0618b19f2b5f40bebc72571b2f000b8c33c217e8 (patch)
treed5cd9c3e68a2e3f33af9caee0f38f22e50771364
parent0f641b29b04982fa2745509668760467688a3c3d (diff)
downloadinitscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar
initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar.gz
initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar.bz2
initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.tar.xz
initscripts-0618b19f2b5f40bebc72571b2f000b8c33c217e8.zip
fix case statement ; apparently tcsh likes fd 15??
-rwxr-xr-xlang.csh10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang.csh b/lang.csh
index 6471cd49..691c34d7 100755
--- a/lang.csh
+++ b/lang.csh
@@ -23,11 +23,15 @@ if ($sourced == 1) then
if ($?SYSFONTACM) then
switch ($SYSFONTACM)
- case iso01*|iso02*|iso15*|koi*|latin2-ucw*:
+ case iso01*:
+ case iso02*:
+ case iso15*:
+ case koi*:
+ case latin2-ucw*:
if ( $?TERM ) then
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
+ if ( `consoletype` == "vt" ) then
+ echo -n -e '\033(K' > /proc/$$/fd/15
endif
endif
endif