summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-20 02:27:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-20 02:27:06 +0000
commit6f4f5eb3835a24f8cb39cb0016df23d1fc203503 (patch)
tree3fff5b581e01d748c78a2c1cc0d9e6e85c01308c /etc/inc
parent1dc67b0425a1ae65115f189815db3dcf14e276c1 (diff)
downloadpfsense-6f4f5eb3835a24f8cb39cb0016df23d1fc203503.zip
pfsense-6f4f5eb3835a24f8cb39cb0016df23d1fc203503.tar.gz
umount /cf then remount as rw when needed
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 50b9460..1c970ff 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -293,9 +293,10 @@ function conf_mount_rw() {
global $g;
/* do not mount on cdrom platform */
- if($g['platform'] == "cdrom")
+ if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
+ $status = mwexec("/sbin/umount -f {$g['cf_path']}");
$status = mwexec("/sbin/mount -w {$g['cf_path']}");
if($status <> 0) {
mwexec("/sbin/fsck -y {$g['cf_path']}");
OpenPOWER on IntegriCloud