home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.eterna.com.au
/
2014.06.ftp.eterna.com.au.tar
/
ftp.eterna.com.au
/
pub
/
rc.d.tar.gz
/
rc.d.tar
/
rc.d
/
fsck
< prev
next >
Wrap
Text File
|
1998-09-23
|
618b
|
43 lines
#! /bin/sh
# PROVIDE: fsck
# REQUIRE: localswap ccd
if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks."
elif [ "$1" = autoboot ]; then
echo "Automatic boot in progress: starting file system checks."
fsck -p
case $? in
0)
;;
2)
exit 1
;;
4)
echo "Rebooting..."
reboot
echo "Reboot failed; help!"
exit 1
;;
8)
echo "Automatic file system check failed; help!"
exit 1
;;
12)
echo "Boot interrupted."
exit 1
;;
130)
# interrupt before catcher installed
exit 1
;;
*)
echo "Unknown error; help!"
exit 1
;;
esac
fi
trap "echo 'Boot interrupted.'; exit 1" 3