diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-28 02:25:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-28 02:25:52 +0000 |
commit | 64f4155ba9dc9fc15839f17aab3d54edbcb6ea76 (patch) | |
tree | 817bd79d4f8038089518b3e67681f6fa4ae14a0f | |
parent | 232c07a79cc1a493987cf5d7949b28590511b049 (diff) | |
download | pfsense-64f4155ba9dc9fc15839f17aab3d54edbcb6ea76.zip pfsense-64f4155ba9dc9fc15839f17aab3d54edbcb6ea76.tar.gz |
Log when we change the bogons frequency hour.
-rw-r--r-- | etc/inc/config.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index daf38ca..74a650b 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -490,12 +490,13 @@ function convert_config() { /* 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")) { - if($config['cron']['item'][$x]['hour'] == "*" ) { - $config['cron']['item'][$x]['hour'] = "2"; - write_config("Updated bogon update frequency to 2am"); - } - } + if(stristr($config['cron']['item'][$x]['command'], "rc.update_bogons.sh")) { + if($config['cron']['item'][$x]['hour'] == "*" ) { + $config['cron']['item'][$x]['hour'] = "2"; + write_config("Updated bogon update frequency to 2am"); + log_error("Updated bogon update frequency to 2am"); + } + } } if ($config['version'] == $g['latest_config']) |