diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-28 01:51:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-28 01:51:30 +0000 |
commit | fde664fca5278665b36415092119abffaa4d63af (patch) | |
tree | bffd01b11bee2ce980b85211ba5edb97c789d55d | |
parent | 4dd8796b415b757e34ee18105cff591bbff5b6fa (diff) | |
download | pfsense-fde664fca5278665b36415092119abffaa4d63af.zip pfsense-fde664fca5278665b36415092119abffaa4d63af.tar.gz |
Change bogons update script frequency to 2am.
-rw-r--r-- | etc/inc/config.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 1ea5382..465c5de 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1134,6 +1134,16 @@ function convert_config() { } + /* special case upgrades */ + /* fix every minute crontab bogons entry */ + $cron_item_count = count($config['cron']['item']); + for($x=0; $x<$cron_item_count; $x++) { + if(stristr($config['cron']['item'][$x]['command'], "rc.update_bogons.sh")) { + $config['cron']['item'][$x]['hour'] = "2"; + write_config("Updated bogon update frequency to 2am"); + } + } + if ($prev_version != $config['version']) write_config("Upgraded config version level from {$prev_version} to {$config['version']}"); } |