summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 28a0fe99e..58756c1d6 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -59,7 +59,8 @@ sub get_eth_cards() {
my $b = find { $_->{device} eq $interface } @devs;
$a ||= $b->{driver};
$a and $saved_driver = $a; # handle multiple cards managed by the same driver
- [ $interface, $saved_driver, (mapIntfToDevice($interface))[0]->{description} ]
+ my ($device) = mapIntfToDevice($interface);
+ [ $interface, $saved_driver, if_($device, $device->{description}) ]
} @all_cards;
}