From 6499a7d5d906251cabc48244e7a66e5ccf82bccb Mon Sep 17 00:00:00 2001 From: Darren Embry Date: Thu, 7 Jun 2012 15:07:24 -0400 Subject: show real interface names --- etc/rc.initial.setlanip | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/rc.initial.setlanip') diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 550fc39..75276f3 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -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: "; -- cgit v1.1