From 0e4fb96126d0c7c80b17d548d308c2bdcf1c56a3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 20 May 2003 15:37:37 +0000 Subject: updated rhgb support () --- rc.d/rc.sysinit | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1