summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-08 18:45:46 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-08 18:45:46 +0000
commit09d80b1c779994a138a9b93fdad829869242f14f (patch)
tree409c7865eef58fbf87b90cd004388ad5f8903a94 /etc/inc/config.inc
parentc4f31acae286c58649fbe337576d275368af6953 (diff)
downloadpfsense-09d80b1c779994a138a9b93fdad829869242f14f.zip
pfsense-09d80b1c779994a138a9b93fdad829869242f14f.tar.gz
There is not necessity to launch mount commands for nothing.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 79a9f0e..eaad5ab 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -494,6 +494,9 @@ function conf_mount_ro() {
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
+ if (!is_subsystem_dirty('mount'))
+ return;
+
clear_subsystem_dirty('mount');
/* sync data, then force a remount of /cf */
mwexec("/bin/sync");
OpenPOWER on IntegriCloud