summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-29 23:27:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-29 23:27:03 +0000
commitfd35c812eae290e829802317c331ecbc24ef64eb (patch)
tree357173108175128dfc2e058b41a6c43cb879855e
parentafe4bc36e33398d6830ec200b0404286cb3d64bb (diff)
downloadpfsense-fd35c812eae290e829802317c331ecbc24ef64eb.zip
pfsense-fd35c812eae290e829802317c331ecbc24ef64eb.tar.gz
Only run fsck on -1 return value
-rw-r--r--etc/inc/config.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 7eb2e00..c1af32b 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']}");
}
OpenPOWER on IntegriCloud