summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-21 22:59:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-21 22:59:45 +0000
commitf699da5259c89267d7db3f0ff4dedc34d0241d23 (patch)
tree9a71838ec1b9255cee107a54b81698f7f75293ed /etc/inc
parent1b720c35b5757f4f3db65ea342fb658f7673e67d (diff)
downloadpfsense-f699da5259c89267d7db3f0ff4dedc34d0241d23.zip
pfsense-f699da5259c89267d7db3f0ff4dedc34d0241d23.tar.gz
Do not mount as ro if we're booting.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index c0ef119..2c34653 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -262,7 +262,9 @@ function conf_mount_rw() {
/* mount flash card read only */
function conf_mount_ro() {
- global $g;
+ global $g, $do_not_mount_ro;
+
+ if($g['booting'] == true) return;
mwexec("/sbin/umount -f {$g['cf_path']}");
mwexec("/sbin/mount -r {$g['cf_path']}");
OpenPOWER on IntegriCloud