diff options
author | Jeff Johnson <jbj@redhat.com> | 1998-07-01 13:19:41 +0000 |
---|---|---|
committer | Jeff Johnson <jbj@redhat.com> | 1998-07-01 13:19:41 +0000 |
commit | c64a1fee475d9679e5be8ddacee2c9926ba36862 (patch) | |
tree | 3eeb27b8b37556aa33213da593f19dcba6ae65a8 | |
parent | 08d59fa7913d46b8d1a52499b5c1a7983e635bc7 (diff) | |
download | initscripts-c64a1fee475d9679e5be8ddacee2c9926ba36862.tar initscripts-c64a1fee475d9679e5be8ddacee2c9926ba36862.tar.gz initscripts-c64a1fee475d9679e5be8ddacee2c9926ba36862.tar.bz2 initscripts-c64a1fee475d9679e5be8ddacee2c9926ba36862.tar.xz initscripts-c64a1fee475d9679e5be8ddacee2c9926ba36862.zip |
Correctly check fsck return code for non-root fs.
-rwxr-xr-x | rc.d/rc.sysinit | 4 |
1 files changed, 3 insertions, 1 deletions
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." |