From 8c1b604d311170d7b42fe810fc39d5bc3afd967f Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sun, 7 Jun 2009 01:16:30 +0200 Subject: Actually use the counter --- etc/inc/upgrade_config.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index f039f38..a987f18 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -607,7 +607,8 @@ function upgrade_037_to_038() { $bridge['bridgeif'] = "bridge{$counter}"; /* done collecting info, have to burn those bridges */ $config['interfaces'][$name]['bridge'] = true; - $a_bridges[] = $bridge; + $a_bridges[$counter] = $bridge; + $counter++; } } $config['bridges'] = $a_bridges; -- cgit v1.1