aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-02-26 16:05:16 -0500
committerBill Nottingham <notting@redhat.com>2008-02-26 16:05:16 -0500
commit7f7ca896e6cf5c61243d56ae3faaf8edb3872469 (patch)
tree17c0352e8b0854d3f46c68188555aeb82e8b71fb /lang.sh
parente4d48c6d55e7a3e794df7cb2434011729524abdf (diff)
downloadinitscripts-7f7ca896e6cf5c61243d56ae3faaf8edb3872469.tar
initscripts-7f7ca896e6cf5c61243d56ae3faaf8edb3872469.tar.gz
initscripts-7f7ca896e6cf5c61243d56ae3faaf8edb3872469.tar.bz2
initscripts-7f7ca896e6cf5c61243d56ae3faaf8edb3872469.tar.xz
initscripts-7f7ca896e6cf5c61243d56ae3faaf8edb3872469.zip
Various minor optimizations to speed up boot. (<arjan@infradead.org>)
Notable: - separate [ "$variable" ] tests from [ -f ... ] - don't grep init scripts - cache the information from /sbin/consoletype - simplify 'confirm' handling
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang.sh b/lang.sh
index 3e485a22..ae02ed01 100755
--- a/lang.sh
+++ b/lang.sh
@@ -46,7 +46,10 @@ if [ "$sourced" = 1 ]; then
[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
- consoletype=$(/sbin/consoletype)
+ consoletype=$CONSOLETYPE
+ if [ -z "$consoletype" ]; then
+ consoletype=$(/sbin/consoletype)
+ fi
if [ -n "$LANG" ]; then
case $LANG in