diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-21 22:59:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-21 22:59:45 +0000 |
commit | f699da5259c89267d7db3f0ff4dedc34d0241d23 (patch) | |
tree | 9a71838ec1b9255cee107a54b81698f7f75293ed /etc/inc | |
parent | 1b720c35b5757f4f3db65ea342fb658f7673e67d (diff) | |
download | pfsense-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.inc | 4 |
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']}"); |