diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-12-16 23:00:53 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-12-16 23:00:53 +0000 |
commit | 74b5a9ed8616c19f728c2b677c4e95680ce6ded6 (patch) | |
tree | 7de591f925a0aef4758cca3468edfe54d175d4d3 /etc | |
parent | 781a93ffffd44a7716dd9906089a2c8c5f079ebd (diff) | |
download | pfsense-74b5a9ed8616c19f728c2b677c4e95680ce6ded6.zip pfsense-74b5a9ed8616c19f728c2b677c4e95680ce6ded6.tar.gz |
Unbreak the corn job installation for schedules.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 1b65a33..14454e1 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -45,6 +45,9 @@ require_once ("shaper.inc"); /* holds the items that will be executed *AFTER* the filter is fully loaded */ $after_filter_configure_run = array(); +/* For installing cron job of schedules */ +$time_based_rules = false; + /* Used to hold the interface list that will be used on ruleset creation. */ $FilterIflist = array(); @@ -95,7 +98,9 @@ function filter_configure() { /* reload filter sync */ function filter_configure_sync() { - global $config, $g, $after_filter_configure_run, $FilterIflist, $GatewaysList, $GatewayGroupsList;; + global $config, $g, $after_filter_configure_run, $FilterIflist, $GatewaysList, $GatewayGroupsList; + global $time_based_rules; + filter_pflog_start(); update_filter_reload_status("Initializing"); /* invalidate interface cache */ @@ -1690,7 +1695,8 @@ function generate_user_filter_rule($rule) function filter_rules_generate() { - global $config, $g, $table_cache, $FilterIflist; + global $config, $g, $table_cache, $FilterIflist, $time_based_rules; + update_filter_reload_status("Creating default rules"); if(isset($config['system']['developerspew'])) { $mt = microtime(); @@ -2027,10 +2033,11 @@ EOD; */ if ($load_ipfw_module == true) { filter_load_ipfw(); - exec("/sbin/ipfw delete set 9"); - exec("/sbin/ipfw delete 2"); - exec("/sbin/ipfw delete 3"); - } + $time_based_rules = true; + exec("/sbin/ipfw delete set 9"); + exec("/sbin/ipfw delete 2"); + exec("/sbin/ipfw delete 3"); + } $ipfrules .= "\n# User-defined aliases follow\n"; /* tables for aliases */ foreach($table_cache as $table) |