summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2010-07-01 12:30:19 +0200
committerJuergen Daubert <jue@jue.li>2010-07-01 12:30:19 +0200
commit6debae3bbc9d973128e9d4fe188c57075f22938b (patch)
tree34bc199e2de62106e202249d3c33abc5d5ed1802 /rc
parent9bc91536b77010c4afa0442e3d384720c32096b7 (diff)
downloadcore-6debae3bbc9d973128e9d4fe188c57075f22938b.tar.gz
core-6debae3bbc9d973128e9d4fe188c57075f22938b.tar.xz
rc: add support for /forcefsck, FS#511
Diffstat (limited to 'rc')
-rw-r--r--rc/.md5sum2
-rw-r--r--rc/Pkgfile2
-rwxr-xr-xrc/rc6
3 files changed, 7 insertions, 3 deletions
diff --git a/rc/.md5sum b/rc/.md5sum
index 8faec787..eb6d5b3f 100644
--- a/rc/.md5sum
+++ b/rc/.md5sum
@@ -1,5 +1,5 @@
d2a8e98a8b10ba09b2a9da34326b526a inittab
-d60fc342d2498974828a276bd5fe902b rc
+ef539e1a7680641ef76b38001eb86682 rc
c8fe38143dffbbc628a7a33966fae408 rc.conf
5b09d4a67beb58022879fa9ce0f5af1b rc.fix
d1be35927946756c68242f29c16ee983 rc.local
diff --git a/rc/Pkgfile b/rc/Pkgfile
index de9518ee..9ac951a0 100644
--- a/rc/Pkgfile
+++ b/rc/Pkgfile
@@ -3,7 +3,7 @@
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=rc
-version=2.24
+version=2.25
release=1
source=(inittab rc rc.modules rc.single rc.multi rc.local rc.fix rc.shutdown rc.conf)
diff --git a/rc/rc b/rc/rc
index 82518f16..1ae73c27 100755
--- 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 ******************"

Generated by cgit