if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions'else f
fsckoptions=fi
if [ -f /forcefsck ]; then
fsckoptions=``-f $fsckoptions''fi
if [ ``$BOOTUP'' != ``serial'' ]; then
fsckoptions='' -C $fsckoptions"else
fsckoptions=`` -V $fsckoptions''fi
_RUN_QUOTACHECK=0
if [ ! -f /fastboot ]; then
STRING=``Checking root filesystem''if [ "$rc" = "0" ]; then
echo $STRING
initlog -c ``fsck -T -a $fsckoptions /''
rc=$?
success "$STRING" echoelif [ "$rc" = "1" ]; then
passed "$STRING" echofi
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
failure "$STRING"
echo
echo
echo "*** An error occurred during the file system check."
echo "*** Dropping you to a shell; the system will reboot"
echo "*** when you leave the shell."
PS1=``(Repair filesystem) # # ''; export PS1
sulogin
echo ``Unmounting file systems''
umount -a
mount -n -o remount,ro /
echo ``Automatic reboot in progress.''
reboot -f
elif [ ``$rc'' = ``1'' ]; then
fi_RUN_QUOTACHECK=1fi
_RUN_QUOTACHECK=0
# Check filesystems
if [ ! -f /fastboot ]; then
STRING="Checking filesystems"
echo $STRING
initlog -c ``fsck -T -R -A -a $fsckoptions''
rc=$?
if [ "$rc" = "0" ]; then
success "$STRING"elif [ "$rc" = "1" ]; then
echo
passed "$STRING"fi
echo
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
failure "$STRING"fi
echo
echo
echo ``*** An error occurred during the file system check.''
echo ``*** Dropping you to a shell; the system will reboot''
echo ``*** when you leave the shell."
PS1=``(Repair filesystem) # # ''; export PS1
sulogin
echo ``Unmounting file systems''
umount -a
mount -n -o remount,ro /
echo ``Automatic reboot in progress.''
reboot -f
elif [ ``$rc'' = ``1'' -a -x /sbin/quotacheck ]; then
_RUN_QUOTACHECK=1
fi