aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-16 07:38:19 +0000
committerBill Nottingham <notting@redhat.com>1999-03-16 07:38:19 +0000
commit920bffaf7e0915f8faadb4090d18a23875dca793 (patch)
tree942afa92470b9c1e70fd31a0777734c8f8547c57 /rc.d/rc.sysinit
parent30c95380bb76e245ba18c7c213d927b88d117d9d (diff)
downloadinitscripts-920bffaf7e0915f8faadb4090d18a23875dca793.tar
initscripts-920bffaf7e0915f8faadb4090d18a23875dca793.tar.gz
initscripts-920bffaf7e0915f8faadb4090d18a23875dca793.tar.bz2
initscripts-920bffaf7e0915f8faadb4090d18a23875dca793.tar.xz
initscripts-920bffaf7e0915f8faadb4090d18a23875dca793.zip
rewrite fsck so you don't get FAILED on a passed check
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit26
1 files changed, 23 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 21c6e7a5..15a756f2 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -52,11 +52,22 @@ if [ -f /forcefsck ]; then
fi
if [ ! -f /fastboot ]; then
- action "Checking root filesystem" fsck -V -T -a $fsckoptions /
+ STRING="Checking root filesystem"
+ echo $STRING
+ initlog -c "fsck -T -a $fsckoptions /"
rc=$?
+ if [ "$rc" = "0" ]; then
+ success "$STRING"
+ echo
+ elif [ "$rc" = "1" ]; then
+ passed "$STRING"
+ echo
+ fi
+
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
+ failure "$STRING"
echo
echo
echo "*** An error occurred during the file system check."
@@ -200,12 +211,21 @@ fi
# Check filesystems
if [ ! -f /fastboot ]; then
- action "Checking filesystems" fsck -V -T -R -A -a $fsckoptions
-
+ STRING="Checking filesystems"
+ echo $STRING
+ initlog -c "fsck -T -R -A -a $fsckoptions"
rc=$?
+ if [ "$rc" = "0" ]; then
+ success "$STRING"
+ echo
+ elif [ "$rc" = "1" ]; then
+ passed "$STRING"
+ echo
+ fi
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
+ failure "$STRING"
echo
echo
echo "*** An error occurred during the file system check."