summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-02 11:07:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-02 11:07:10 +0000
commit9bfa215b7dca77d9f7dee8997072ffff0617316a (patch)
treec76772a1015c84bfc95767af789c73fbf222bde1
parent33fa31ef2087a9b7c80bbed5eb612f7945f3551d (diff)
downloaddrakx-backup-do-not-use-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar
drakx-backup-do-not-use-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar.gz
drakx-backup-do-not-use-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar.bz2
drakx-backup-do-not-use-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar.xz
drakx-backup-do-not-use-9bfa215b7dca77d9f7dee8997072ffff0617316a.zip
(get_eth_cards) handle not loaded drivers
-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;
}