]> git.pld-linux.org Git - packages/console-tools.git/blobdiff - console.sh
- one subshell less; read i18n only if there's activity to be done
[packages/console-tools.git] / console.sh
index 5a878fd765f08c7e07ee2d724334906b9fe06c23..e018d5a3a4b11392b6fd16275e891a20045dcc03 100644 (file)
@@ -1,9 +1,8 @@
-[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
-
-tty -s
-if [ $? -eq 0 ]; then
+if tty -s; then
  case $TERM in
   linux)
+       [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
+
        if [ -f /etc/sysconfig/console ]; then
                . /etc/sysconfig/console
 
This page took 0.080273 seconds and 4 git commands to generate.