diff options
author | Bill Nottingham <notting@redhat.com> | 2008-02-26 16:05:16 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-02-26 16:05:16 -0500 |
commit | 7f7ca896e6cf5c61243d56ae3faaf8edb3872469 (patch) | |
tree | 17c0352e8b0854d3f46c68188555aeb82e8b71fb /lang.sh | |
parent | e4d48c6d55e7a3e794df7cb2434011729524abdf (diff) | |
download | initscripts-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-x | lang.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |