summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-21 01:00:37 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-21 01:00:37 -0400
commit3b65922290cb8775d111d8b4611717904024e8ad (patch)
tree4d2202508371c8eb879a44bd3b73c0bff85423b3 /etc/inc
parent6c0fb3040d334fc479133fa5ac5a1815dd31c646 (diff)
downloadpfsense-3b65922290cb8775d111d8b4611717904024e8ad.zip
pfsense-3b65922290cb8775d111d8b4611717904024e8ad.tar.gz
Unbreak parse_config plugins and fix autoconfigbackup
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc18
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index b0b3be9..dd8236b 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -214,7 +214,7 @@ EOD;
* $config - array containing all configuration variables
******/
function parse_config($parse = false) {
- global $g;
+ global $g, $config_parsed;
if(filesize("{$g['conf_path']}/config.xml") == 0) {
$last_backup = discover_last_backup();
if($last_backup) {
@@ -272,13 +272,6 @@ function parse_config($parse = false) {
alias_make_table($config);
config_unlock();
- /* process packager manager custom rules */
- if(is_dir("/usr/local/pkg/parse_config")) {
- update_filter_reload_status("Running plugins (parse_config)");
- run_plugins("/usr/local/pkg/parse_config/");
- update_filter_reload_status("Plugins completed.");
- }
-
/* override some global configuration parms if they exist
* instead of hard coding these checks into the codebase
*/
@@ -292,6 +285,8 @@ function parse_config($parse = false) {
if($config['pppoe']['pppoe_subnet'])
$g['pppoe_subnet'] = $config['pppoe']['pppoe_subnet'];
+ $config_parsed = true;
+
return $config;
}
@@ -1887,4 +1882,11 @@ function set_device_perms() {
if($g['booting']) echo ".";
$config = parse_config();
+if($config_parsed) {
+ /* process packager manager custom rules */
+ if(is_dir("/usr/local/pkg/parse_config")) {
+ run_plugins("/usr/local/pkg/parse_config/");
+ }
+}
+
?> \ No newline at end of file
OpenPOWER on IntegriCloud