diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-10 04:17:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-10 04:17:48 +0000 |
commit | 5b6eac014229d7794f76675379d4a78262ca3400 (patch) | |
tree | b8fd22f975cff714f06cf12fbc7b74669a437f68 /etc/inc/interfaces.inc | |
parent | b9e3a295e8b7ee59c928eaccc75fd11360580b7b (diff) | |
download | pfsense-5b6eac014229d7794f76675379d4a78262ca3400.zip pfsense-5b6eac014229d7794f76675379d4a78262ca3400.tar.gz |
Use product_name
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index ffed245..550cf19 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -58,18 +58,18 @@ function interfaces_loopback_configure() function interfaces_vlan_configure() { - global $config; + global $config; $i = 0; - if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) { - foreach ($config['vlans']['vlan'] as $vlan) { + if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) { + foreach ($config['vlans']['vlan'] as $vlan) { if(empty($vlan['vlanif'])) $vlan['vlanif'] = "vlan{$i}"; - /* XXX: Maybe we should report any errors?! */ - interface_vlan_configure($vlan['if'], $vlan['tag'], $vlan['vlanif']); + /* XXX: Maybe we should report any errors?! */ + interface_vlan_configure($vlan['if'], $vlan['tag'], $vlan['vlanif']); $i++; } - } + } } function interface_vlan_configure($if, $tag, $vlanif = "") |