Expand PMF_FN_* macros.
[netbsd-mini2440.git] / etc / rc.d / fsck
blob85d132d44422af79ff301450fc5765dbf6c34feb
1 #!/bin/sh
3 # $NetBSD: fsck,v 1.9 2008/03/02 21:31:30 tron Exp $
6 # PROVIDE: fsck
7 # REQUIRE: localswap
9 $_rc_subr_loaded . /etc/rc.subr
11 name="fsck"
12 start_cmd="fsck_start"
13 stop_cmd=":"
15 fsck_start()
17 if [ -e /fastboot ]; then
18 echo "Fast boot: skipping disk checks."
19 return
21 trap : 2 # Ignore SIGINT, SIGQUIT, so we
22 trap : 3 # enter single-user mode on failure.
24 echo "Starting file system checks:"
25 fsck $fsck_flags
26 handle_fsck_error "$?"
29 load_rc_config $name
30 run_rc_command "$1"