diff options
author | Florian La Roche <laroche@redhat.com> | 2006-01-22 11:42:28 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2006-01-22 11:42:28 +0000 |
commit | 8f519c87d8db4f53290d1879b4c01e584c553dd7 (patch) | |
tree | 038f69331bc44ca241ec1ff33c5686d7946d3865 /lang.sh | |
parent | 0cf6a3df897c09e444a4aa21b83f715e3de2e308 (diff) | |
download | initscripts-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-x | lang.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |