summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-08-12 12:01:05 +0000
committerErmal Luçi <eri@pfsense.org>2009-08-12 12:02:59 +0000
commit70562c2cf3b293d71571001afd9728c9467bc785 (patch)
treefa1fa610a47643f4bc408282de1cc32661e439fb /etc/inc
parentf204df7d7746b23cf38126a891552eef5a457176 (diff)
downloadpfsense-70562c2cf3b293d71571001afd9728c9467bc785.zip
pfsense-70562c2cf3b293d71571001afd9728c9467bc785.tar.gz
Catch up with the new System->Misc option added for schedules.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c290b5a..b225f71 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1487,7 +1487,8 @@ function filter_generate_user_rule($rule)
foreach ($config['schedules']['schedule'] as $sched) {
if ($sched['name'] == $rule['sched']) {
if (!filter_get_time_based_rule_status($sched)) {
- mwexec("/sbin/pfctl -y {$sched['schedlabel']}");
+ if ($config['system']['schedule_states'])
+ mwexec("/sbin/pfctl -y {$sched['schedlabel']}");
return "# schedule finished - {$rule['descr']}";
} else if ($g['debug'])
log_error("[TDR DEBUG] status true -- rule type '$type'");
OpenPOWER on IntegriCloud