View | Details | Raw Unified | Return to bug 9531
Collapse All | Expand All

(-)rc.sysinit.orig (-6 / +7 lines)
Lines 150-156 Link Here
150
150
151
	if [ $rc -gt 1 ]; then
151
	if [ $rc -gt 1 ]; then
152
		# A return of 3 or higher means there were serious problems.
152
		# A return of 3 or higher means there were serious problems.
153
		if [ $rc -gt 3 ]; then
153
		if [ $rc -lt 4 ]; then
154
			echo "Remounting root filesystem readonly."
155
			mount -n -o remount,ro /
156
			echo "Automatic reboot in progress. Press 'L' to log in."
157
			read -n 1 -s -t 60 whattodo
158
			[ "$whattodo" = "l" -o "$whattodo" = "L" ] || reboot -f
159
		fi
154
			echo
160
			echo
155
			echo "*** An error occurred during the file system check."
161
			echo "*** An error occurred during the file system check."
156
			echo "*** Dropping you to a shell; the system will reboot"
162
			echo "*** Dropping you to a shell; the system will reboot"
Lines 158-169 Link Here
158
164
159
			PS1="(Repair filesystem) \# # "; export PS1
165
			PS1="(Repair filesystem) \# # "; export PS1
160
			sulogin
166
			sulogin
161
		fi
162
167
163
		echo "Remounting root filesystem readonly."
164
		mount -n -o remount,ro /
165
		echo "Automatic reboot in progress."
166
		reboot -f
167
	elif [ $rc = 1 ]; then
168
	elif [ $rc = 1 ]; then
168
		_RUN_QUOTACHECK=1
169
		_RUN_QUOTACHECK=1
169
	fi
170
	fi

Return to bug 9531