summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.initial.setlanip5
1 files changed, 3 insertions, 2 deletions
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: ";
OpenPOWER on IntegriCloud