From e6a4cb14e744f6f0170d1339974d7d581ee4351f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 17 Dec 2002 17:21:49 +0000 Subject: graphical boot changes --- rc.d/rc.sysinit | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index ec102d59..287c57e0 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -25,7 +25,16 @@ fi . /etc/init.d/functions -# Print a banner. ;) +# Start the graphical boot, if necessary +if [ "$BOOTUP" = "graphical" ] + if [ -x /usr/bin/rhgb ]; then + /usr/bin/rhgb + else + export BOOTUP=color + fi +fi + +# Print a text banner. echo -en $"\t\tWelcome to " if grep -q "Red Hat" /etc/redhat-release ; then [ "$BOOTUP" = "color" ] && echo -en $"\\033[0;31m" @@ -248,6 +257,10 @@ 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 + chvt 1 + fi + failure "$STRING" echo echo @@ -494,6 +507,10 @@ if [ -z "$fastboot" ]; then # A return of 2 or higher means there were serious problems. if [ $rc -gt 1 ]; then + if [ "$BOOTUP" = "graphical" ]; then + chvt 1 + fi + failure "$STRING" echo echo @@ -545,6 +562,10 @@ fi # Configure machine if necessary. if [ -f /.unconfigured ]; then + if [ "$BOOTUP" = "graphical" ]; then + chvt 1 + fi + if [ -x /usr/bin/passwd ]; then /usr/bin/passwd root fi -- cgit v1.2.1