summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-06-08 17:52:40 +0000
committerErmal Luçi <eri@pfsense.org>2009-06-08 17:52:40 +0000
commitef0269508610f837212ec2d0ecd2435f126d61a9 (patch)
tree86cae093b6bad3bcbd9f13c3042b78da7fe31ae4 /etc/inc
parentdb7f618ba9df5a1e7ef535d5e20567273a635e4b (diff)
downloadpfsense-ef0269508610f837212ec2d0ecd2435f126d61a9.zip
pfsense-ef0269508610f837212ec2d0ecd2435f126d61a9.tar.gz
Remove code from Seth since one code already exists. And fix a bug on the previous upgrade code.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/upgrade_config.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index fdb3af1..2e00622 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -591,16 +591,7 @@ function upgrade_037_to_038() {
function upgrade_038_to_039() {
global $config;
-
- /* This should only be valid when upgrading vlans from a 1.2 config though */
- /* Vlan upgrade code. Since we now create vlans with a vlanif tag we just start at 0 */
- $vlan_counter = 0;
- if (is_array($config['vlans']['vlan'])) {
- foreach ($config['vlans']['vlan'] as $vlan) {
- $config['vlans']['vlan'][$vlan_counter]['vlanif'] = "vlan{$vlan_counter}";
- $vlan_counter++;
- }
- }
+ /* Insert upgrade code here */
}
@@ -781,7 +772,7 @@ function upgrade_044_to_045() {
global $config;
if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) {
foreach ($config['vlans']['vlan'] as $id => &$vlan)
- $vlan['vlanif'] = "vlan{$tag}";
+ $vlan['vlanif'] = "vlan{$vlan['tag']}";
}
}
OpenPOWER on IntegriCloud