summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-29 07:20:10 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-29 07:20:10 +0000
commit7ec79b3123e4cb2a2bd11e7f7c3a8fe62043807d (patch)
tree99415566ffe63d7838e1f1f18683fdf6a412b1c6
parentdf92e453e76c11f99ef6a48390f44921cc907535 (diff)
downloaddrakx-7ec79b3123e4cb2a2bd11e7f7c3a8fe62043807d.tar
drakx-7ec79b3123e4cb2a2bd11e7f7c3a8fe62043807d.tar.gz
drakx-7ec79b3123e4cb2a2bd11e7f7c3a8fe62043807d.tar.bz2
drakx-7ec79b3123e4cb2a2bd11e7f7c3a8fe62043807d.tar.xz
drakx-7ec79b3123e4cb2a2bd11e7f7c3a8fe62043807d.zip
try several locations
-rwxr-xr-xperl-install/standalone/service_harddrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 03ade66bb..b10d419d2 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -21,7 +21,7 @@ $last_boot_config .= '_X11' if $invert_do_it;
modules::mergein_conf('/etc/modules.conf');
# we need to check if graphic card is managed by nv|nivdia first:
-if (find { -e join('', "/lib/modules/", c::kernel_version(), "/kernel/drivers/video/$_") } qw(NVdriver nvidia.o nvidia.o.gz nvidia.ko nvidia.ko.gz)) {
+if (find { -e join('', "/lib/modules/", c::kernel_version(), "/kernel/drivers/$_") } map { ("video/$_", "char/$_") } qw(NVdriver nvidia.o nvidia.o.gz nvidia.ko nvidia.ko.gz)) {
substInFile { s!Driver "nv.*"!Driver "nvidia"!g; s!#*( Load.*glx)!\1!g } $_ foreach "/etc/X11/XF86Config-4", "/etc/X11/XF86Config";
} else {
substInFile { s!Driver "nv.*"!Driver "nv"!g;s!([^#]Load.*glx)!#\1!g } $_ foreach "/etc/X11/XF86Config-4", "/etc/X11/XF86Config";