summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-26 22:51:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-26 22:51:37 +0000
commit2f0c10b3ab0e9b5d485ae2cc3aaaa6147a188be3 (patch)
treea39202317c7c8601efa61c8ab8799dc302227cc5 /etc/inc/config.inc
parente5b987f060da8d3df8ff46b32ee3ebfaf1ad8871 (diff)
downloadpfsense-2f0c10b3ab0e9b5d485ae2cc3aaaa6147a188be3.zip
pfsense-2f0c10b3ab0e9b5d485ae2cc3aaaa6147a188be3.tar.gz
Upgrade configuration correctly.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 29db02c..6fbc1d9 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1046,8 +1046,12 @@ function convert_config() {
$config['version'] = "3.0";
}
- /* Convert 3.0 -> 3.1 */
- if ($config['version'] <= 3.1 and !$config['sysctl']['item']) {
+ }
+
+ /* Convert 3.0 -> 3.1 */
+ if ($config['version'] <= 3.0) {
+ if(!$config['sysctl']) {
+
$config['sysctl']['item'] = array();
$config['sysctl']['item'][0]['tunable'] = "net.inet.tcp.blackhole";
OpenPOWER on IntegriCloud