diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-06 22:54:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-06 22:54:13 +0000 |
commit | 0acac84a56350aaa8cb138032033cee1a7b1d429 (patch) | |
tree | d3137ef2098b3dca7b611f1bda3d686d169cc42d /etc/inc | |
parent | cade3bb9de0c8552388e80b97a0e53392001c17f (diff) | |
download | pfsense-0acac84a56350aaa8cb138032033cee1a7b1d429.zip pfsense-0acac84a56350aaa8cb138032033cee1a7b1d429.tar.gz |
If status <> 0 then run fsck -y
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index cf9edf8..3b5cfe0 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -279,13 +279,13 @@ 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) { + 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) { + while($status <> 0) { mwexec("/sbin/fsck -y"); $status = mwexec("/sbin/mount -w -o noatime {$g['cf_path']}"); } @@ -298,7 +298,7 @@ function conf_mount_rw() { mwexec("/sbin/umount -f /"); $status = mwexec("/sbin/mount -w /"); /* we could not mount this correctly. kick off fsck */ - while($status < 0) { + while($status <> 0) { log_error("File system is dirty. Launching FSCK for /"); mwexec("/sbin/fsck -y"); $status = mwexec("/sbin/mount -w /"); |