diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-08 18:45:46 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-08 18:45:46 +0000 |
commit | 09d80b1c779994a138a9b93fdad829869242f14f (patch) | |
tree | 409c7865eef58fbf87b90cd004388ad5f8903a94 /etc | |
parent | c4f31acae286c58649fbe337576d275368af6953 (diff) | |
download | pfsense-09d80b1c779994a138a9b93fdad829869242f14f.zip pfsense-09d80b1c779994a138a9b93fdad829869242f14f.tar.gz |
There is not necessity to launch mount commands for nothing.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 3 |
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"); |