fs

morpheus filesystem files
git clone git://git.2f30.org/fs
Log | Files | Refs

commit 1a6011dbacdb2c3a5305088ba5592c225f8375de
parent 68191ae014cc589274b71534711cc59cf385f3c5
Author: sin <sin@2f30.org>
Date:   Fri,  7 Mar 2014 11:53:49 +0000

Check filesystems

Diffstat:
Mbin/rc.init | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/bin/rc.init b/bin/rc.init @@ -22,6 +22,14 @@ mount -n -t devtmpfs dev /dev mkdir -p /dev/pts mount -n -t devpts devpts /dev/pts +echo Checking filesystems +fsck -ATa +if [ $? -eq 1 ]; then + echo Filesystem errors exist, fix manually. + sh + halt -r +fi + echo Remounting root as read-write mount -o remount,rw /