aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2006-01-22 11:42:28 +0000
committerFlorian La Roche <laroche@redhat.com>2006-01-22 11:42:28 +0000
commit8f519c87d8db4f53290d1879b4c01e584c553dd7 (patch)
tree038f69331bc44ca241ec1ff33c5686d7946d3865 /lang.sh
parent0cf6a3df897c09e444a4aa21b83f715e3de2e308 (diff)
downloadinitscripts-8f519c87d8db4f53290d1879b4c01e584c553dd7.tar
initscripts-8f519c87d8db4f53290d1879b4c01e584c553dd7.tar.gz
initscripts-8f519c87d8db4f53290d1879b4c01e584c553dd7.tar.bz2
initscripts-8f519c87d8db4f53290d1879b4c01e584c553dd7.tar.xz
initscripts-8f519c87d8db4f53290d1879b4c01e584c553dd7.zip
- avoid calling consoletype if one of the other conditions already fail
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang.sh b/lang.sh
index 2553ec73..5f75281d 100755
--- a/lang.sh
+++ b/lang.sh
@@ -61,8 +61,10 @@ if [ "$sourced" = 1 ]; then
if [ -n "$LANG" ]; then
case $LANG in
*.utf8*|*.UTF-8*)
- if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" -a $SHLVL -eq 1 ]; then
+ if [ "$TERM" = "linux" -a $SHLVL -eq 1 ]; then
+ if [ "`/sbin/consoletype`" = "vt" ]; then
[ -x /bin/unicode_start ] && /sbin/consoletype fg && /bin/unicode_start $SYSFONT $SYSFONTACM
+ fi
fi
;;
esac