3 # $NetBSD: fsck_root,v 1.2 2009/04/28 13:08:51 apb Exp $
8 $_rc_subr_loaded .
/etc
/rc.subr
11 start_cmd
="fsck_root_start"
17 if [ -e /fastboot
]; then
18 echo "Fast boot: skipping disk checks."
21 trap : 2 # Ignore SIGINT, SIGQUIT, so we
22 trap : 3 # enter single-user mode on failure.
24 # Do nothing if root file system has fs_passno=0 in /etc/fstab.
25 while read fs_spec fs_file fs_vfstype fs_mntops fs_freq fs_passno
27 case "${fs_spec}:${fs_file}:${fs_passno}" in
29 continue # skip comment or blank line
32 echo "Not checking /: fs_passno = 0 in ${fstab_file}"
35 *:/:*) case "${fs_spec}" in
37 echo "Not checking /: nfs mounted"
45 echo "Starting root file system check:"
47 handle_fsck_error
"$?"