diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 20:28:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 20:28:38 +0000 |
commit | 1fb9cd476af8298e373ccac55434c5e739f30777 (patch) | |
tree | 655489e36e14d2513b29775db9cc7ba41ecc295a /etc/inc | |
parent | 38287b63da2c089d5fdc4f99bda7b3d3981209de (diff) | |
download | pfsense-1fb9cd476af8298e373ccac55434c5e739f30777.zip pfsense-1fb9cd476af8298e373ccac55434c5e739f30777.tar.gz |
Change get_number_of_bridged_interfaces() behavior
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 50b10bd..e77a067 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1283,13 +1283,8 @@ function is_altq_capable($int) { function get_number_of_bridged_interfaces() { $bridges = array(); - $bridges = split("\n", `/sbin/ifconfig -a | /usr/bin/grep bridge`); - $bridge_count = 0; - foreach($bridges as $bridge) { - $bridge_count++; - } - $bridge_count++; - return array_count_values($bridge_count); + $bridges = `/sbin/ifconfig -a | /usr/bin/grep bridge | wc -l`; + return $bridges; } function get_next_available_bridge_interface() { |