summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-26 22:41:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-26 22:41:57 +0000
commite5b987f060da8d3df8ff46b32ee3ebfaf1ad8871 (patch)
tree0f6df867040b4ac9ad11682394fd2ef6b9a2a194 /etc/inc
parent084721160e6dea9cd009b957b051cc4b3f28d943 (diff)
downloadpfsense-e5b987f060da8d3df8ff46b32ee3ebfaf1ad8871.zip
pfsense-e5b987f060da8d3df8ff46b32ee3ebfaf1ad8871.tar.gz
Upgrade configuration correctly.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 82afe19..29db02c 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1042,10 +1042,12 @@ function convert_config() {
/* wipe previous auth configuration */
unset ($config['system']['username']);
unset ($config['system']['password']);
+
+ $config['version'] = "3.0";
}
/* Convert 3.0 -> 3.1 */
- if ($config['version'] <= 3.0 and !$config['sysctl']['item']) {
+ if ($config['version'] <= 3.1 and !$config['sysctl']['item']) {
$config['sysctl']['item'] = array();
$config['sysctl']['item'][0]['tunable'] = "net.inet.tcp.blackhole";
@@ -1115,9 +1117,10 @@ function convert_config() {
$config['sysctl']['item'][16]['tunable'] = "net.inet.tcp.inflight.enable";
$config['sysctl']['item'][16]['desc'] = "The system will attempt to calculate the bandwidth delay product for each connection and limit the amount of data queued to the network to just the amount required to maintain optimum throughput. ";
$config['sysctl']['item'][16]['value'] = "3";
+
+ $config['version'] = "3.1";
}
- $config['version'] = "3.1";
}
if ($prev_version != $config['version'])
OpenPOWER on IntegriCloud