From f168918217b51512c9501d3f2c649efc93548e08 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Sun, 17 Oct 2004 04:16:45 +0000 Subject: make sure we return to rhgb after fsck (#133966, #112839) --- rc.d/rc.sysinit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index bd9f322b..b228863c 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -67,6 +67,9 @@ relabel_selinux() { rm -f /.autorelabel echo "*** Enabling security enforcement. ***" echo $SELINUX > $selinuxfs/enforce + if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then + chvt 8 + fi } @@ -421,6 +424,9 @@ if [ -z "$fastboot" -a "$READONLY" != "yes" -a "X$ROOTFSTYPE" != "Xnfs" -a "X$RO elif [ "$rc" -eq "1" ]; then _RUN_QUOTACHECK=1 fi + if [ -f /.autofsck -a -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then + chvt 8 + fi fi # Unmount the initrd, if necessary if LC_ALL=C fgrep -q /initrd /proc/mounts && ! LC_ALL=C fgrep -q /initrd/loopfs /proc/mounts ; then -- cgit v1.2.1