Revision 335978db
Added by Scott Ullrich over 20 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
417 | 417 |
} |
418 | 418 |
} |
419 | 419 |
|
420 |
/* |
|
421 |
* find_number_of_created_bridges(): returns the number of currently created bridges |
|
422 |
*/ |
|
423 |
function find_number_of_created_bridges() { |
|
424 |
return `/sbin/ifconfig | grep \"bridge[0-999]\:" | wc -l`; |
|
425 |
} |
|
426 |
|
|
420 | 427 |
/* |
421 | 428 |
* add_rule_to_anchor($anchor, $rule): adds the specified rule to an anchor |
422 | 429 |
*/ |
Also available in: Unified diff
Add find_number_of_created_bridges() routine which returns the number of currently created bridges
*/