Revision fc0b0dc5
Added by Scott Ullrich almost 20 years ago
etc/inc/config.inc | ||
---|---|---|
294 | 294 |
compact flash card. */ |
295 | 295 |
if($g['platform'] == "wrap" or $g['platform'] == "net45xx") { |
296 | 296 |
mwexec("/sbin/umount -f {$g['embeddedbootupslice']}"); |
297 |
mwexec("/sbin/mount -w {$g['embeddedbootupslice']}"); |
|
297 |
$status = mwexec("/sbin/mount -w {$g['embeddedbootupslice']}"); |
|
298 |
/* we could not mount this correctly. kick off fsck */ |
|
299 |
while($status < 0) { |
|
300 |
mwexec("/sbin/fsck -y"); |
|
301 |
$status = mwexec("/sbin/mount -w {$g['embeddedbootupslice']}"); |
|
302 |
} |
|
298 | 303 |
} |
299 | 304 |
} |
300 | 305 |
|
Also available in: Unified diff
Check to make sure we can mount / correctly when needed. If wec cannot
mount for some reason kick off fsck -y until the f/s is non-dirty.