From 58fe324b7742e6058d64500dc924ce431eedc161 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 27 Oct 2009 10:53:29 +0000 Subject: keep around device (needed for next commits) --- perl-install/standalone/service_harddrake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}}) { -- cgit v1.2.1