3 # $NetBSD: fsck,v 1.2 2001/06/18 06:42:35 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/fsck,v 1.4 2002/10/12 10:31:31 schweikh Exp $
5 # $DragonFly: src/etc/rc.d/fsck,v 1.1 2003/07/24 06:35:37 dillon Exp $
10 # KEYWORD: DragonFly FreeBSD NetBSD
15 start_cmd="fsck_start"
20 # Terminate the process (which may include the parent /etc/rc)
21 # if booting directly to multiuser mode.
23 if [ "$autoboot" = yes ]; then
31 if [ "$autoboot" = no ]; then
32 echo "Fast boot: skipping disk checks."
33 elif [ "$autoboot" = yes ]; then
34 # During fsck ignore SIGQUIT
37 echo "Starting file system checks:"
59 echo "Reboot failed; help!"
65 if checkyesno fsck_y_enable; then
66 echo "File system preen failed, trying fsck -y."
72 echo "Automatic file system check failed; help!"
77 echo "Automatic file system check failed; help!"
83 if checkyesno fsck_y_enable; then
84 echo "File system preen failed, trying fsck -y."
90 echo "Automatic file system check failed; help!"
95 echo "Automatic file system check failed; help!"
100 echo "Automatic file system check failed; help!"
106 echo "Boot interrupted."
113 echo "Unknown error; help!"