diff options
author | jim-p <jimp@pfsense.org> | 2016-07-11 12:42:56 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-07-11 12:44:51 -0400 |
commit | ee9fb7bc7017a49fe4b78568fee4a1ca804b2063 (patch) | |
tree | 38425d973c859b1903f80e7993efefaa2982181b /src | |
parent | 2cc19f46b0dd2ce1604ef6a890f3222857c98744 (diff) | |
download | pfsense-ee9fb7bc7017a49fe4b78568fee4a1ca804b2063.zip pfsense-ee9fb7bc7017a49fe4b78568fee4a1ca804b2063.tar.gz |
Add upgrade code to clean up the old GRE/GIF flags that are no longer used. Ticket #6586 and Ticket #6587
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/globals.inc | 2 | ||||
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index e900b5e..f5c253c 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -99,7 +99,7 @@ $g = array( "disablecrashreporter" => false, "crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php", "debug" => false, - "latest_config" => "15.4", + "latest_config" => "15.5", "nopkg_platforms" => array("cdrom"), "minimum_ram_warning" => "101", "minimum_ram_warning_text" => "128 MB", diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index c126e3e..52aa482 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4980,4 +4980,28 @@ function upgrade_153_to_154() { /* NOTE: This upgrade code was reverted. See redmine ticket #6118 and https://github.com/pfsense/pfsense/commit/538a3c04a6b6671151e913b06b2f340b6f8ee222 */ } + +/* Clean up old GRE/GIF options. See Redmine tickets #6586 and #6587 */ +function upgrade_154_to_155() { + global $config; + + if (is_array($config['gifs']['gif'])) { + foreach ($config['gifs']['gif'] as $idx => $gif) { + if (isset($gif['link0'])) { + unset($config['gifs']['gif'][$idx]['link0']); + } + } + } + + if (is_array($config['gres']['gre'])) { + foreach ($config['gres']['gre'] as $idx => $gre) { + if (isset($gre['link0'])) { + unset($config['gres']['gre'][$idx]['link0']); + } + if (isset($gre['link2'])) { + unset($config['gres']['gre'][$idx]['link2']); + } + } + } +} ?> |