From c64a1fee475d9679e5be8ddacee2c9926ba36862 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 1 Jul 1998 13:19:41 +0000 Subject: Correctly check fsck return code for non-root fs. --- rc.d/rc.sysinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index fc846522..2457bd4b 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -188,8 +188,10 @@ if [ ! -f /fastboot ]; then echo "Checking filesystems." fsck -R -A -V -a $fsckoptions + rc=$? + # A return of 2 or higher means there were serious problems. - if [ $? -gt 1 ]; then + if [ $rc -gt 1 ]; then echo echo echo "*** An error occurred during the file system check." -- cgit v1.2.1