1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/fsck 252310 2013-06-27 18:28:45Z hrs $
| 3# $FreeBSD: head/etc/rc.d/fsck 289186 2015-10-12 14:23:10Z vangyzen $
|
4# 5 6# PROVIDE: fsck 7# REQUIRE: swap 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="fsck" 13start_cmd="fsck_start" 14stop_cmd=":" 15 16fsck_start() 17{ 18 if [ "$autoboot" = no ]; then 19 echo "Fast boot: skipping disk checks." 20 elif [ ! -r /etc/fstab ]; then 21 echo "Warning! No /etc/fstab: skipping disk checks." 22 elif [ "$autoboot" = yes ]; then
| 4# 5 6# PROVIDE: fsck 7# REQUIRE: swap 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="fsck" 13start_cmd="fsck_start" 14stop_cmd=":" 15 16fsck_start() 17{ 18 if [ "$autoboot" = no ]; then 19 echo "Fast boot: skipping disk checks." 20 elif [ ! -r /etc/fstab ]; then 21 echo "Warning! No /etc/fstab: skipping disk checks." 22 elif [ "$autoboot" = yes ]; then
|
23 # During fsck ignore SIGQUIT
| 23 # During fsck ignore SIGQUIT
|
24 trap : 3 25 26 check_startmsgs && echo "Starting file system checks:" 27 if checkyesno background_fsck; then 28 fsck -F -p 29 else 30 fsck -p 31 fi
--- 47 unchanged lines hidden --- | 24 trap : 3 25 26 check_startmsgs && echo "Starting file system checks:" 27 if checkyesno background_fsck; then 28 fsck -F -p 29 else 30 fsck -p 31 fi
--- 47 unchanged lines hidden --- |