summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-03 12:21:03 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-03 12:21:03 +0000
commit39d6e9c001aee9ee3f21442566fc6322d8125804 (patch)
tree4614ef28e63a068deb84bd7ee158dd22e836a7ab /perl-install/standalone
parent90ddb639e8027b0611174c5d395de5473f27792d (diff)
downloaddrakx-39d6e9c001aee9ee3f21442566fc6322d8125804.tar
drakx-39d6e9c001aee9ee3f21442566fc6322d8125804.tar.gz
drakx-39d6e9c001aee9ee3f21442566fc6322d8125804.tar.bz2
drakx-39d6e9c001aee9ee3f21442566fc6322d8125804.tar.xz
drakx-39d6e9c001aee9ee3f21442566fc6322d8125804.zip
fix detecting modules installed in new dkms locations (/dkms and /dkms-binary) instead of /kernel
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 1788481cf..03eb718f7 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -55,8 +55,8 @@ my @cards = (
foreach my $card (@cards) {
next if !find { $_->{driver} =~ /$card->{ldetect_driver_regexp}/ } detect_devices::probeall();
- if (find { -e join('', "/lib/modules/", c::kernel_version(), "/kernel/drivers/$_") }
- map { ("extra/$_", "video/$_", "char/$_", "char/drm/$_") } map { $_, "$_.gz" } @{$card->{module_names}}) {
+ 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}}) {
# do not automatically switch from nv to nvidia (in order to handle
# cases where nvidia module crashes the system):