summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-27 10:53:29 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-27 10:53:29 +0000
commit58fe324b7742e6058d64500dc924ce431eedc161 (patch)
treec817b69b561cb621666fed7d590d9b465babaef7 /perl-install
parentdc2c249ed3c2f2c3f8376ef1955d6a19e3f95aab (diff)
downloaddrakx-58fe324b7742e6058d64500dc924ce431eedc161.tar
drakx-58fe324b7742e6058d64500dc924ce431eedc161.tar.gz
drakx-58fe324b7742e6058d64500dc924ce431eedc161.tar.bz2
drakx-58fe324b7742e6058d64500dc924ce431eedc161.tar.xz
drakx-58fe324b7742e6058d64500dc924ce431eedc161.zip
keep around device (needed for next commits)
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/service_harddrake4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 0e4a57aa8..05f33d44a 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -73,7 +73,9 @@ my @cards = (
);
foreach my $card (@cards) {
- next if !find { $_->{driver} =~ /$card->{ldetect_driver_regexp}/ } detect_devices::probeall();
+ my $device = find { $_->{driver} =~ /$card->{ldetect_driver_regexp}/ } detect_devices::probeall();
+ next if !$device;
+
if (find { -e join('', "/lib/modules/", c::kernel_version(), $_) }
map { ("/dkms/$_", "/dkms-binary/$_", "/kernel/$_") } map { "/drivers/$_" } map { ("extra/$_", "video/$_", "char/$_", "char/drm/$_") } map { $_, "$_.gz" } @{$card->{module_names}}) {