aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-10-22 19:56:28 +0000
committerBill Nottingham <notting@redhat.com>2003-10-22 19:56:28 +0000
commite058c63a0afdbf7e77839d3394781018100cf573 (patch)
treec383bbd6135e88f07767791a1b05f0a06929fa51 /rc.d/rc.sysinit
parent653463dd361765b13bdd916e3292d70b38edbef1 (diff)
downloadinitscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar.gz
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar.bz2
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.tar.xz
initscripts-e058c63a0afdbf7e77839d3394781018100cf573.zip
switch on rhgb details for confirm mode. (#100894)
catch a couple more failure cases in rc.sysinit for jumping out of rhgb.
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 6fb71549..17548c74 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -219,6 +219,9 @@ fi
if [ -f /forcefsck ] || strstr "$cmdline" forcefsck ; then
fsckoptions="-f $fsckoptions"
elif [ -f /.autofsck ]; then
+ if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
+ chvt 1
+ fi
echo $"Your system appears to have shut down uncleanly"
AUTOFSCK_TIMEOUT=5
[ -f /etc/sysconfig/autofsck ] && . /etc/sysconfig/autofsck
@@ -489,6 +492,9 @@ if [ -f /etc/raidtab ]; then
# A non-zero return means there were problems.
if [ $rc -gt 0 ]; then
+ if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
+ chvt 1
+ fi
echo
echo
echo $"*** An error occurred during the RAID startup"