show real interface names

This commit is contained in:
Darren Embry 2012-06-07 15:07:24 -04:00
parent 3f63e8e20b
commit 6499a7d5d9

View File

@ -90,8 +90,9 @@ $count = count($ifdescrs);
if ($count > 1) {
echo "Available interfaces:\n\n";
$x=1;
foreach($ifdescrs as $iface) {
echo "{$x} - {$iface}\n";
foreach($ifdescrs as $iface => $ifdescr) {
$realif = $config['interfaces'][$iface]['if'];
echo "{$x} - {$ifdescr} ({$realif})\n";
$x++;
}
echo "\nEnter the number of the interface you wish to configure: ";