aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-03-17 15:14:26 -0400
committerBill Nottingham <notting@redhat.com>2009-03-17 15:14:26 -0400
commit30558c7a855058994a520c74af77db0854fc296d (patch)
treebf4071b6148108c18036640e9f2e917af87c750e /lang.sh
parenta0895aba2529c34387cf9abdc658f5f43c39d32c (diff)
downloadinitscripts-30558c7a855058994a520c74af77db0854fc296d.tar
initscripts-30558c7a855058994a520c74af77db0854fc296d.tar.gz
initscripts-30558c7a855058994a520c74af77db0854fc296d.tar.bz2
initscripts-30558c7a855058994a520c74af77db0854fc296d.tar.xz
initscripts-30558c7a855058994a520c74af77db0854fc296d.zip
Add an option for consoletype to always return 0.
This allows tcsh -e to work, with lang.sh. It's a hack, but there really isn't a better way to solve it.
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang.sh b/lang.sh
index 936c84c4..9fe22d8a 100755
--- a/lang.sh
+++ b/lang.sh
@@ -42,7 +42,7 @@ if [ "$sourced" = 1 ]; then
consoletype=$CONSOLETYPE
if [ -z "$consoletype" ]; then
- consoletype=$(/sbin/consoletype || :)
+ consoletype=$(/sbin/consoletype stdout)
fi
if [ -n "$LANG" ]; then