diff options
author | Juergen Daubert <jue@jue.li> | 2010-07-01 12:30:19 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2010-07-01 12:30:19 +0200 |
commit | 6debae3bbc9d973128e9d4fe188c57075f22938b (patch) | |
tree | 34bc199e2de62106e202249d3c33abc5d5ed1802 /rc | |
parent | 9bc91536b77010c4afa0442e3d384720c32096b7 (diff) | |
download | core-6debae3bbc9d973128e9d4fe188c57075f22938b.tar.gz core-6debae3bbc9d973128e9d4fe188c57075f22938b.tar.xz |
rc: add support for /forcefsck, FS#511
Diffstat (limited to 'rc')
-rw-r--r-- | rc/.md5sum | 2 | ||||
-rw-r--r-- | rc/Pkgfile | 2 | ||||
-rwxr-xr-x | rc/rc | 6 |
3 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ d2a8e98a8b10ba09b2a9da34326b526a inittab -d60fc342d2498974828a276bd5fe902b rc +ef539e1a7680641ef76b38001eb86682 rc c8fe38143dffbbc628a7a33966fae408 rc.conf 5b09d4a67beb58022879fa9ce0f5af1b rc.fix d1be35927946756c68242f29c16ee983 rc.local @@ -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) @@ -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 ******************" |