3 # $NetBSD: fsck,v 1.2 2001/06/18 06:42:35 lukem Exp $
14 start_cmd="fsck_start"
19 # Terminate the process (which may include the parent /etc/rc)
20 # if booting directly to multiuser mode.
22 if [ "$autoboot" = yes ]; then
30 if [ "$autoboot" = no ]; then
31 echo "Fast boot: skipping disk checks."
32 elif [ ! -r /etc/fstab ]; then
33 echo "Warning! No /etc/fstab: skipping disk checks."
34 elif [ "$autoboot" = yes ]; then
35 # During fsck ignore SIGQUIT
38 echo "Starting file system checks:"
39 if checkyesno background_fsck; then
54 echo "Reboot failed; help!"
58 if checkyesno fsck_y_enable; then
59 echo "File system preen failed, trying fsck -y."
65 echo "Automatic file system check failed; help!"
70 echo "Automatic file system check failed; help!"
75 echo "Boot interrupted."
82 echo "Unknown error; help!"