From 23f0ca50d2543a9725840147f9484fbd40345c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 8 Mar 2010 19:27:18 +0000 Subject: Move check upper to suit the platforms not needing it better. --- etc/inc/config.lib.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc') 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; -- cgit v1.1