summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 488629e..8e59e2b 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1001,6 +1001,17 @@ function convert_config() {
$config['version'] = "3.0";
}
+ /* 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']}");
}
@@ -1843,4 +1854,4 @@ function set_device_perms() {
if($g['booting']) echo ".";
$config = parse_config();
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud