From fd35c812eae290e829802317c331ecbc24ef64eb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 29 Jul 2005 23:27:03 +0000 Subject: [PATCH] Only run fsck on -1 return value --- etc/inc/config.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 7eb2e00265..c1af32b7a8 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -279,14 +279,14 @@ function conf_mount_rw() { /* don't use mount -u anymore (doesn't sync the files properly and /bin/sync won't help either) */ $status = mwexec("/sbin/umount -f {$g['cf_path']}"); - while($status <> 0) { - mwexec("fsck -y"); + while($status < 0) { + mwexec("/sbin/fsck -y"); $status = mwexec("/sbin/umount -f {$g['cf_path']}"); } $status = mwexec("/sbin/mount -w -o noatime {$g['cf_path']}"); - while($status <> 0) { - mwexec("fsck -y"); + while($status < 0) { + mwexec("/sbin/fsck -y"); $status = mwexec("/sbin/mount -w -o noatime {$g['cf_path']}"); }