summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-09-17 19:06:30 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-09-17 19:06:30 +0000
commit5f05bdc48cb5e9e9d3e0c8029c3bd09f73df2a32 (patch)
treec62f6ef983940e119a978662b81ae9376e2e4b96 /etc/inc/config.inc
parentf7eec0bcb67ba1bd3d49fad04578b1c5446f1931 (diff)
downloadpfsense-5f05bdc48cb5e9e9d3e0c8029c3bd09f73df2a32.zip
pfsense-5f05bdc48cb5e9e9d3e0c8029c3bd09f73df2a32.tar.gz
MFC RELENG_1. Make it possible to disable RRD graphs. Bump config so it's on by default if it wasn't already.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index df2b026..54f987e 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -994,6 +994,13 @@ function convert_config() {
$config['version'] = "2.9";
}
+ /* Convert 2.9 -> 3.0 */
+ if ($config['version'] <= 2.9) {
+ /* enable the rrd config setting by default */
+ $config['rrd']['enable'] = true;
+ $config['version'] = "3.0";
+ }
+
if ($prev_version != $config['version'])
write_config("Upgraded config version level from {$prev_version} to {$config['version']}");
}
@@ -1832,4 +1839,4 @@ function set_device_perms() {
if($g['booting']) echo ".";
$config = parse_config();
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud