summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-08 19:27:18 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-08 19:27:18 +0000
commit23f0ca50d2543a9725840147f9484fbd40345c77 (patch)
tree551a71cc16f8a0c69fc37fda001df67a78c0ffea /etc/inc/config.lib.inc
parentdb98c8b956d6132e711ab707c3bcee5c66b11454 (diff)
downloadpfsense-23f0ca50d2543a9725840147f9484fbd40345c77.zip
pfsense-23f0ca50d2543a9725840147f9484fbd40345c77.tar.gz
Move check upper to suit the platforms not needing it better.
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r--etc/inc/config.lib.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index 4c69986..0de03a7 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -337,6 +337,10 @@ function conf_mount_ro() {
if($g['booting'] == true)
return;
+ /* do not umount on cdrom or pfSense platforms */
+ if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
+ return;
+
/* firmare upgrade in progress */
if (is_subsystem_dirty('firmwarelock'))
return;
@@ -345,10 +349,6 @@ function conf_mount_ro() {
if (is_subsystem_dirty('sshdkeys'))
return;
- /* do not umount on cdrom or pfSense platforms */
- if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
- return;
-
if (!is_subsystem_dirty('mount'))
return;
OpenPOWER on IntegriCloud