diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-27 10:53:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-27 10:53:29 +0000 |
commit | 58fe324b7742e6058d64500dc924ce431eedc161 (patch) | |
tree | c817b69b561cb621666fed7d590d9b465babaef7 /perl-install | |
parent | dc2c249ed3c2f2c3f8376ef1955d6a19e3f95aab (diff) | |
download | drakx-backup-do-not-use-58fe324b7742e6058d64500dc924ce431eedc161.tar drakx-backup-do-not-use-58fe324b7742e6058d64500dc924ce431eedc161.tar.gz drakx-backup-do-not-use-58fe324b7742e6058d64500dc924ce431eedc161.tar.bz2 drakx-backup-do-not-use-58fe324b7742e6058d64500dc924ce431eedc161.tar.xz drakx-backup-do-not-use-58fe324b7742e6058d64500dc924ce431eedc161.zip |
keep around device (needed for next commits)
Diffstat (limited to 'perl-install')
-rwxr-xr-x | perl-install/standalone/service_harddrake | 4 |
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}}) { |