CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
rc: update to 2.26
[crossrootfs.git] / rc / rc
diff --git a/rc/rc b/rc/rc
index 82518f16dea932678b52652e39340f91ceb899bf..1ae73c27cb462b7946c7fe36ba40b77e520c06f8 100644 (file)
--- a/rc/rc
+++ b/rc/rc
@@ -22,8 +22,12 @@ fi
 # Mount root read-only
 /bin/mount -n -o remount,ro /
 
+if [ -f /forcefsck ]; then
+FORCEFSCK="-f"
+fi
+
 # Check filesystems
-/sbin/fsck -A -T -C -a
+/sbin/fsck $FORCEFSCK -A -T -C -a
 if [ $? -gt 1 ]; then
        echo
        echo "***************  FILESYSTEM CHECK FAILED  ******************"