diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-27 19:11:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-27 19:11:27 +0000 |
commit | 029d5e005369a6effbb83f55191dcc3b0e695a00 (patch) | |
tree | 2e3572618e7ae10d788edb302052a615074409df /etc/inc/pfsense-utils.inc | |
parent | e33e17d83324e77bc87dad45bb038e05946bfba3 (diff) | |
download | pfsense-029d5e005369a6effbb83f55191dcc3b0e695a00.zip pfsense-029d5e005369a6effbb83f55191dcc3b0e695a00.tar.gz |
Do not writeout tdr_cron_install() entries on bootup. Somehow doing so adds a stray load balancing and openvpn entries.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index a20a67b..1525d26 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -78,7 +78,9 @@ function get_tmp_file() { * none ******/ function tdr_install_cron($should_install) { - global $config; + global $config, $g; + if($g['booting']==true) + return; $is_installed = false; if(!$config['cron']['item']) return; @@ -102,6 +104,7 @@ function tdr_install_cron($should_install) { $cron_item['who'] = "root"; $cron_item['command'] = "/etc/rc.filter_configure_sync"; $config['cron']['item'][] = $cron_item; + parse_config(true); write_config("Installed 15 minute filter reload for Time Based Rules"); configure_cron(); } @@ -110,6 +113,7 @@ function tdr_install_cron($should_install) { if($is_installed == true) { if($x > 0) { unset($config['cron']['item'][$x]); + parse_config(true); write_config(); } configure_cron(); |