mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only run fsck on -1 return value
This commit is contained in:
parent
afe4bc36e3
commit
fd35c812ea
@ -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']}");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user