diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-24 18:21:10 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-24 18:21:10 -0400 |
commit | 14578e35a5d3570a71abc3f0098d72c91b8a7e0d (patch) | |
tree | 94b261fafade6bfc5d917b3e70b0e1e9ac134076 /etc | |
parent | d43ad788f295023f6e7d923fa07f0928a9a270d0 (diff) | |
download | pfsense-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.inc | 2 |
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) { |