aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
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 /rc.d/init.d
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 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions6
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
}