summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-01 00:29:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-01 00:29:00 +0000
commitf6a7ef1f5bc5e18d2a833636a50b7971ddb90c89 (patch)
tree6701a3b1c150c2df7c7bbef0af8ecec69a565c71 /etc/inc
parent2d34d9c670eedcf831875875a5a1b3c530b5fe44 (diff)
downloadpfsense-f6a7ef1f5bc5e18d2a833636a50b7971ddb90c89.zip
pfsense-f6a7ef1f5bc5e18d2a833636a50b7971ddb90c89.tar.gz
Do not rely on ifconfig to discover a friendly interface name
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 6979805..e7ee527 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -494,9 +494,7 @@ function convert_real_interface_to_friendly_interface_name($interface) {
}
foreach ($ifdescrs as $ifdescr => $ifname) {
$int = filter_translate_type_to_real_interface($ifname);
- $ifconfig = exec_command("/sbin/ifconfig {$int}");
- if(stristr($ifconfig,$interface) <> false)
- return $ifname;
+ if($config['interfaces'][$ifname]['if'] == $interface) return $ifname;
}
return $interface;
}
OpenPOWER on IntegriCloud