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 /rc.d/init.d | |
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 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/functions | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index ef7b2d00..bb943963 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -459,8 +459,10 @@ echo_warning() { # Inform the graphical boot of our current state update_boot_stage() { - if [ "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb-client ]; then - /usr/bin/rhgb-client --update="$1" + if [ "$GRAPHICAL" = "yes" ]; then + if [ -x /usr/bin/rhgb-client ]; then + /usr/bin/rhgb-client --update="$1" + fi fi return 0 } |