summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-25 14:14:52 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-25 14:14:52 -0400
commitb856cf90a5fadeba42a2c75f6fb39fd078d1cbc5 (patch)
tree3fa352d09417fd2c6a65a3bb8df0e2d47636e146 /etc/inc
parentca1cad0f2ddd6056ea0a27212f0289a7b1aa14a9 (diff)
downloadpfsense-b856cf90a5fadeba42a2c75f6fb39fd078d1cbc5.zip
pfsense-b856cf90a5fadeba42a2c75f6fb39fd078d1cbc5.tar.gz
No need to call conf_mount_rw() to generate config cache, its written to /tmp
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 40b19e6..38753ba 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -320,11 +320,9 @@ function parse_config($parse = false) {
function generate_config_cache($config) {
global $g;
- conf_mount_rw();
$configcache = fopen($g['tmp_path'] . '/config.cache', "w");
fwrite($configcache, serialize($config));
fclose($configcache);
- conf_mount_ro();
}
function discover_last_backup() {
@@ -1300,4 +1298,4 @@ function set_device_perms() {
if($g['booting']) echo ".";
$config = parse_config();
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud