summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-28 16:06:48 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-28 16:06:48 +0000
commitf073abf1f2cad14fd91497127309b4aeb5bf3c1b (patch)
treec6c651310d0fcc37ad1a0c31f5ce19536db16a96 /perl-install
parent1254dfff9fcdb77084a22c7ab29d87e9f551c3d3 (diff)
downloaddrakx-backup-do-not-use-f073abf1f2cad14fd91497127309b4aeb5bf3c1b.tar
drakx-backup-do-not-use-f073abf1f2cad14fd91497127309b4aeb5bf3c1b.tar.gz
drakx-backup-do-not-use-f073abf1f2cad14fd91497127309b4aeb5bf3c1b.tar.bz2
drakx-backup-do-not-use-f073abf1f2cad14fd91497127309b4aeb5bf3c1b.tar.xz
drakx-backup-do-not-use-f073abf1f2cad14fd91497127309b4aeb5bf3c1b.zip
split devices listing (needed for next commits)
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/service_harddrake5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index dd83e0cc8..acf3494a7 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -95,8 +95,11 @@ my @cards = (
}
);
+
+my @devices = grep { $_->{driver} =~ /^Card:/ } detect_devices::probeall();
+
foreach my $card (@cards) {
- my $device = find { $_->{driver} =~ /$card->{ldetect_driver_regexp}/ } detect_devices::probeall();
+ my $device = find { $_->{driver} =~ /$card->{ldetect_driver_regexp}/ } @devices;
next if !$device;
my $id = $device->{driver} =~ /Card:(.*)/ && $1;