diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-02 11:07:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-02 11:07:10 +0000 |
commit | 9bfa215b7dca77d9f7dee8997072ffff0617316a (patch) | |
tree | c76772a1015c84bfc95767af789c73fbf222bde1 /perl-install/network | |
parent | 33fa31ef2087a9b7c80bbed5eb612f7945f3551d (diff) | |
download | drakx-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar drakx-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar.gz drakx-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar.bz2 drakx-9bfa215b7dca77d9f7dee8997072ffff0617316a.tar.xz drakx-9bfa215b7dca77d9f7dee8997072ffff0617316a.zip |
(get_eth_cards) handle not loaded drivers
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/ethernet.pm | 3 |
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; } |