3 # $NetBSD: fsck,v 1.9 2008/03/02 21:31:30 tron Exp $
8 $_rc_subr_loaded .
/etc
/rc.subr
11 start_cmd
="fsck_root_start"
16 if [ -e /fastboot
]; then
17 echo "Fast boot: skipping disk checks."
20 trap : 2 # Ignore SIGINT, SIGQUIT, so we
21 trap : 3 # enter single-user mode on failure.
23 echo "Starting root file system check:"
30 2) # Needs re-run, still fs errors
31 echo "file system still has errors; re-run fsck manually!"
34 echo "Root filesystem was modified, rebooting ..."
36 echo "Reboot failed; help!"
39 echo "Automatic file system check failed; help!"
42 echo "Boot interrupted."
45 echo "Unknown error $fsck_error; help!"