87fc4e29f5
2. don't check if root is on nfs 3. reboot -n if root was modified as the manual page suggests
31 lines
506 B
Bash
Executable File
31 lines
506 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: fsck,v 1.10 2009/07/10 20:02:21 christos Exp $
|
|
#
|
|
|
|
# PROVIDE: fsck
|
|
# REQUIRE: localswap
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="fsck"
|
|
start_cmd="fsck_start"
|
|
stop_cmd=":"
|
|
|
|
fsck_start()
|
|
{
|
|
if [ -e /fastboot ]; then
|
|
echo "Fast boot: skipping disk checks."
|
|
return
|
|
fi
|
|
trap : 2 # Ignore SIGINT, SIGQUIT, so we
|
|
trap : 3 # enter single-user mode on failure.
|
|
|
|
echo "Starting file system checks:"
|
|
fsck $fsck_flags
|
|
handle_fsck_error "$?"
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|