summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfigurator.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-10-02 16:53:18 +0000
committerFrancois Pons <fpons@mandriva.com>2001-10-02 16:53:18 +0000
commit5a1ca2380c4898a99434e0919beda052f729538e (patch)
tree38378d3713409ec81f7e5b6b6f06185d7f0576ba /perl-install/Xconfigurator.pm
parent58e3030db21edd25cdbcb0fd9695ddbf1826bb30 (diff)
downloaddrakx-backup-do-not-use-5a1ca2380c4898a99434e0919beda052f729538e.tar
drakx-backup-do-not-use-5a1ca2380c4898a99434e0919beda052f729538e.tar.gz
drakx-backup-do-not-use-5a1ca2380c4898a99434e0919beda052f729538e.tar.bz2
drakx-backup-do-not-use-5a1ca2380c4898a99434e0919beda052f729538e.tar.xz
drakx-backup-do-not-use-5a1ca2380c4898a99434e0919beda052f729538e.zip
fix previous hack.
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r--perl-install/Xconfigurator.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index b76adee17..8679800ab 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -418,7 +418,11 @@ NOTE THIS IS EXPERIMENTAL SUPPORT AND MAY FREEZE YOUR COMPUTER.", $xf3_ver)) . "
-e "$prefix/usr/X11R6/lib/modules/extensions/libglx.so")) {
log::l("Using specific NVIDIA driver and GLX extensions");
$card->{driver} = 'nvidia';
- run_program::rooted($prefix, "/sbin/depmod", "-a"); #- hack as NVIDIA_kernel package does not do it actually (8.1 OEM).
+ foreach (@{$cardOptions->{allowNVIDIA_rpms}}) { #- hack as NVIDIA_kernel package does not do it actually (8.1 OEM).
+ if (/NVIDIA_kernel-([^\-]*)-([^\-]*)(?:-(.*))?/ && -e "$prefix/boot/System.map-$1-$2$3") {
+ run_program::rooted($prefix, "/sbin/depmod", "-a", "-F", "/boot/System.map-$1-$2$3", "$1-$2$3");
+ }
+ }
} else {
$card->{NVIDIA_glx} = '';
}