summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2004-05-04 13:28:37 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2004-05-04 13:28:37 +0000
commitebbbdd17a339b6455a34f50f95510ef91959c940 (patch)
tree7739f17afc526c51e90291b9fbb7bd9d28e3a27e /perl-install/network
parentb5ccc5e1a4d069d01bece23b84af095cdae39ab1 (diff)
downloaddrakx-backup-do-not-use-ebbbdd17a339b6455a34f50f95510ef91959c940.tar
drakx-backup-do-not-use-ebbbdd17a339b6455a34f50f95510ef91959c940.tar.gz
drakx-backup-do-not-use-ebbbdd17a339b6455a34f50f95510ef91959c940.tar.bz2
drakx-backup-do-not-use-ebbbdd17a339b6455a34f50f95510ef91959c940.tar.xz
drakx-backup-do-not-use-ebbbdd17a339b6455a34f50f95510ef91959c940.zip
perl_checker fixes
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/ethernet.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index baf52d82d..3d7888ca7 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -61,9 +61,9 @@ sub get_eth_cards() {
} else {
($description) = (mapIntfToDevice($interface))[0]->{description};
}
- if (!$description and my $driver = $a || $saved_driver) {
- my @cards = grep { $_->{driver} eq $driver } detect_devices::probeall();
- $description = $cards[0]->{description} if $#cards == 0;
+ if (!$description) {
+ my @cards = grep { $_->{driver} eq ($a || $saved_driver) } detect_devices::probeall();
+ $description = $cards[0]{description} if $#cards == 0;
}
$a and $saved_driver = $a; # handle multiple cards managed by the same driver
[ $interface, $saved_driver, if_($description, $description) ]