Revision f6a7ef1f
Added by Scott Ullrich over 20 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
494 | 494 |
} |
495 | 495 |
foreach ($ifdescrs as $ifdescr => $ifname) { |
496 | 496 |
$int = filter_translate_type_to_real_interface($ifname); |
497 |
$ifconfig = exec_command("/sbin/ifconfig {$int}"); |
|
498 |
if(stristr($ifconfig,$interface) <> false) |
|
499 |
return $ifname; |
|
497 |
if($config['interfaces'][$ifname]['if'] == $interface) return $ifname; |
|
500 | 498 |
} |
501 | 499 |
return $interface; |
502 | 500 |
} |
Also available in: Unified diff
Do not rely on ifconfig to discover a friendly interface name