diff options
author | dd <dd@FreeBSD.org> | 2001-05-22 00:05:48 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-05-22 00:05:48 +0000 |
commit | 82ab5b2b68d0f33005187bdb78a5500881a55c2f (patch) | |
tree | ec7652f4532af2314f945b6d980ad0830b1afa76 /etc/rc | |
parent | a445507567af73626a92864bafe38b13dab625c6 (diff) | |
download | FreeBSD-src-82ab5b2b68d0f33005187bdb78a5500881a55c2f.zip FreeBSD-src-82ab5b2b68d0f33005187bdb78a5500881a55c2f.tar.gz |
Introduce a background_fsck rc.conf option which allows the user to
enable or disable background fsck'ing all in one shot. Default is
currently 'YES'.
Reviewed by: jkh
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -184,9 +184,14 @@ swapon -a case ${bootmode} in autoboot) echo 'Automatic boot in progress...' -# To restore old fsck behavior use: -# fsck -p - fsck -F -p + case ${background_fsck} in + [Yy][Ee][Ss]) + fsck -F -p + ;; + *) + fsck -p + ;; + esac case $? in 0) ;; @@ -810,9 +815,13 @@ case ${kern_securelevel_enable} in ;; esac -# Start background fsck checks -echo 'Starting background filesystem checks' -nice -4 fsck -B -p 2>&1 | logger -p daemon.notice & +# Start background fsck checks if necessary +case ${background_fsck} in +[Yy][Ee][Ss]) + echo 'Starting background filesystem checks' + nice -4 fsck -B -p 2>&1 | logger -p daemon.notice & + ;; +esac echo '' |