home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
live
/
etc
/
init.d
/
checkfs.sh
< prev
next >
Wrap
Text File
|
1998-06-21
|
728b
|
41 lines
#
# checkfs.sh Check all filesystems.
#
# Version: @(#)checkfs 1.10 22-Jun-1998 miquels@cistron.nl
#
. /etc/default/rcS
#
# Check the rest of the file systems.
#
if [ ! -f /fastboot ]
then
if [ -f /forcefsck ]
then
force="-f"
else
force=""
fi
if [ "$FSCKFIX" = yes ]
then
fix="-y"
else
fix="-a"
fi
echo "Checking all file systems..."
fsck -R -A $fix $force
if [ $? -gt 1 ]
then
echo
echo "fsck failed. Please repair manually."
echo
echo "CONTROL-D will exit from this shell and continue system startup."
echo
# Start a single user shell on the console
/sbin/sulogin $CONSOLE
fi
fi
rm -f /fastboot /forcefsck