summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-24 18:21:10 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-24 18:21:10 -0400
commit14578e35a5d3570a71abc3f0098d72c91b8a7e0d (patch)
tree94b261fafade6bfc5d917b3e70b0e1e9ac134076 /etc
parentd43ad788f295023f6e7d923fa07f0928a9a270d0 (diff)
downloadpfsense-14578e35a5d3570a71abc3f0098d72c91b8a7e0d.zip
pfsense-14578e35a5d3570a71abc3f0098d72c91b8a7e0d.tar.gz
Use ifconfig -l instead of native get_interface_list() to avoid include hell
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/globals.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index df162cd..b36947d 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -38,6 +38,8 @@ function remove_numbers($string) {
}
function get_nics_with_capabilities($CAPABILITIES) {
+ $ifs = `ifconfig -l`;
+ $if_list = split(" ", $ifs);
$if_list = get_interface_list();
$vlan_native_supp = array();
foreach($if_list as $if => $iface) {
OpenPOWER on IntegriCloud