Revision 1dc67b04
Added by Scott Ullrich over 19 years ago
etc/inc/config.inc | ||
---|---|---|
333 | 333 |
if(file_exists("/tmp/keys_generating")) |
334 | 334 |
return; |
335 | 335 |
|
336 |
/* do not umount on cdrom platform */
|
|
337 |
if($g['platform'] == "cdrom") |
|
336 |
/* do not umount on cdrom or pfSense platforms */
|
|
337 |
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
|
|
338 | 338 |
return; |
339 | 339 |
|
340 | 340 |
/* sync data, then force a umount the remount of /cf */ |
341 | 341 |
mwexec("/bin/sync"); |
342 |
mwexec("/bin/sync"); |
|
342 | 343 |
mwexec("/sbin/umount -f {$g['cf_path']}"); |
343 | 344 |
mwexec("/sbin/mount -r {$g['cf_path']}"); |
344 |
|
|
345 |
/* if the platform is soekris or wrap, lets unmount the |
|
346 |
* compact flash card. |
|
347 |
*/ |
|
348 |
if($g['platform'] == "wrap" or $g['platform'] == "net45xx" |
|
349 |
or $g['platform'] == "embedded") { |
|
350 |
mwexec("/bin/sync"); |
|
351 |
mwexec("/bin/sync"); |
|
352 |
mwexec("/bin/sync"); |
|
353 |
mwexec("/sbin/mount -r /"); |
|
354 |
} |
|
345 |
mwexec("/bin/sync"); |
|
346 |
mwexec("/bin/sync"); |
|
347 |
mwexec("/sbin/mount -r /"); |
|
355 | 348 |
} |
356 | 349 |
|
357 | 350 |
/****f* config/convert_config |
Also available in: Unified diff
Do not fiddle with umounting on pfsense or cdrom platforms