SOURCES: console.sh - one subshell less; read i18n only if there's...

glen glen at pld-linux.org
Tue May 23 15:39:03 CEST 2006


Author: glen                         Date: Tue May 23 13:39:03 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- one subshell less; read i18n only if there's activity to be done

---- Files affected:
SOURCES:
   console.sh (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/console.sh
diff -u SOURCES/console.sh:1.13 SOURCES/console.sh:1.14
--- SOURCES/console.sh:1.13	Tue May 23 15:25:52 2006
+++ SOURCES/console.sh	Tue May 23 15:38:58 2006
@@ -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
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/console.sh?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list