summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-20 02:09:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-20 02:09:25 +0000
commit312710db15570fea11b9ade4e5e2248d85e9a138 (patch)
tree29268443a56fa78e70c3a956d6acf5b49580a147 /etc
parent191a81751647567956acba1154615f6c947f10fe (diff)
downloadpfsense-312710db15570fea11b9ade4e5e2248d85e9a138.zip
pfsense-312710db15570fea11b9ade4e5e2248d85e9a138.tar.gz
Force a umount of /cf then remount as ro
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index e2df733..2bd0a1a 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -337,7 +337,11 @@ function conf_mount_ro() {
if($g['platform'] == "cdrom")
return;
+ /* sync data, then force a umount the remount of /cf */
+ mwexec("/bin/sync");
+ mwexec("/sbin/umount -f {$g['cf_path']}");
mwexec("/sbin/mount -r {$g['cf_path']}");
+
/* if the platform is soekris or wrap, lets unmount the
* compact flash card.
*/
@@ -1354,4 +1358,4 @@ function start_devd() {
exec("/sbin/devd");
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud