From 28292db0d46517cd978459db8fbdca503e2fc7f6 Mon Sep 17 00:00:00 2001 From: Kurt J. Bosch Date: Fri, 14 May 2010 12:47:38 +0200 Subject: [PATCH 3/3] Avoid additional fsck on shutdown if /forcefsck exists --- rc.shutdown | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index 6caec3c..0e107c6 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -103,7 +103,8 @@ stat_busy "Unmounting Loop Filesystems" stat_done fsckret_loop=0 -if [ "$SHUTDOWN_FSCK" = "yes" -o "$SHUTDOWN_FSCK" = "YES" ]; then +if [ "$SHUTDOWN_FSCK" = "yes" -o "$SHUTDOWN_FSCK" = "YES" ] \ + && ! [ -f /forcefsck ]; then FORCEFSCK= fsck_loop fsckret_loop=$fsckret @@ -118,7 +119,8 @@ stat_busy "Remounting Root Filesystem Read-only" stat_done fsckret=0 -if [ "$SHUTDOWN_FSCK" = "yes" -o "$SHUTDOWN_FSCK" = "YES" ]; then +if [ "$SHUTDOWN_FSCK" = "yes" -o "$SHUTDOWN_FSCK" = "YES" ] \ + && ! [ -f /forcefsck ]; then FORCEFSCK= fsck_all fi -- 1.7.0.3