From 7f7ca896e6cf5c61243d56ae3faaf8edb3872469 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 26 Feb 2008 16:05:16 -0500 Subject: Various minor optimizations to speed up boot. () Notable: - separate [ "$variable" ] tests from [ -f ... ] - don't grep init scripts - cache the information from /sbin/consoletype - simplify 'confirm' handling --- rc.d/init.d/functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d') 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 } -- cgit v1.2.1