--- rc.sysinit.orig 2006-05-07 18:42:50 +0400 +++ rc.sysinit 2006-05-07 18:42:26 +0400 @@ -150,7 +150,13 @@ if [ $rc -gt 1 ]; then # A return of 3 or higher means there were serious problems. - if [ $rc -gt 3 ]; then + if [ $rc -lt 4 ]; then + echo "Remounting root filesystem readonly." + mount -n -o remount,ro / + echo "Automatic reboot in progress. Press 'L' to log in." + read -n 1 -s -t 60 whattodo + [ "$whattodo" = "l" -o "$whattodo" = "L" ] || reboot -f + fi echo echo "*** An error occurred during the file system check." echo "*** Dropping you to a shell; the system will reboot" @@ -158,12 +164,7 @@ PS1="(Repair filesystem) \# # "; export PS1 sulogin - fi - echo "Remounting root filesystem readonly." - mount -n -o remount,ro / - echo "Automatic reboot in progress." - reboot -f elif [ $rc = 1 ]; then _RUN_QUOTACHECK=1 fi