summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/fsck
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-06-10 19:03:23 +0000
committeravg <avg@FreeBSD.org>2009-06-10 19:03:23 +0000
commit72ecca2c268bc360ea02c2241bf2426bf22d443b (patch)
tree01eeef823a4efe6ac63ca0321fb08f32257f7b3b /etc/rc.d/fsck
parent20201c3a83c2f5f4bb3aa40ed833dcf29b9f6fe5 (diff)
downloadFreeBSD-src-72ecca2c268bc360ea02c2241bf2426bf22d443b.zip
FreeBSD-src-72ecca2c268bc360ea02c2241bf2426bf22d443b.tar.gz
rc.d/fsck: allow additional options for fsck_y_enable via fsck_y_flags
Primary intention is to allow to pass -C option to avoid (re-)checking clean filesystems when preening fails and fsck -y kicks in. Submitted by: marck Reviewed by: current@ Approved by: jhb (mentor) MFC after: 1 week
Diffstat (limited to 'etc/rc.d/fsck')
-rwxr-xr-xetc/rc.d/fsck4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/fsck b/etc/rc.d/fsck
index bf51089..a2ca0b7 100755
--- a/etc/rc.d/fsck
+++ b/etc/rc.d/fsck
@@ -44,8 +44,8 @@ fsck_start()
;;
8)
if checkyesno fsck_y_enable; then
- echo "File system preen failed, trying fsck -y."
- fsck -y
+ echo "File system preen failed, trying fsck -y ${fsck_y_flags}"
+ fsck -y ${fsck_y_flags}
case $? in
0)
;;
OpenPOWER on IntegriCloud