aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit12
1 files changed, 4 insertions, 8 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index d0c424fb..54694896 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -24,12 +24,8 @@ fi
. /etc/init.d/functions
# Start the graphical boot, if necessary
-if [ "$BOOTUP" = "graphical" ]; then
- if [ -x /usr/bin/rhgb ]; then
+if [ "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" ]; then
/usr/bin/rhgb
- else
- BOOTUP=color
- fi
fi
if [ "$HOSTTYPE" != "s390" -a "$HOSTTYPE" != "s390x" ]; then
@@ -265,7 +261,7 @@ if [ -z "$fastboot" -a "X$ROOTFSTYPE" != "Xnfs" ]; then
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
- if [ "$BOOTUP" = "graphical" ]; then
+ if [ -x /usr/bin/rhgb-client -a /usr/bin/rhgb-client --ping ]; then
chvt 1
fi
@@ -523,7 +519,7 @@ if [ -z "$fastboot" ]; then
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
- if [ "$BOOTUP" = "graphical" ]; then
+ if [ -x /usr/bin/rhgb-client -a /usr/bin/rhgb-client --ping ]; then
chvt 1
fi
@@ -579,7 +575,7 @@ fi
# Configure machine if necessary.
if [ -f /.unconfigured ]; then
- if [ "$BOOTUP" = "graphical" ]; then
+ if [ -x /usr/bin/rhgb-client -a /usr/bin/rhgb-client --ping ]; then
chvt 1
fi