summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm
index 1516d8798..f60fed41e 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -530,9 +530,13 @@ sub automatic_xconf {
my $card = Xconfig::card::from_raw_X($o->{raw_X});
}
- if (cat_('/etc/X11/XF86Config-4') =~ /Driver\s*"nvidia"/) {
+ my ($Driver) = cat_('/etc/X11/XF86Config-4') =~ /Section "Device".*Driver\s*"(.*?)"/s;
+ if ($Driver eq 'nvidia') {
modules::load('nvidia');
+ lomount_clp('nvidia', '/usr/lib/libGLcore.so.1');
}
+ my $lib = 'libGL.so.1';
+ symlinkf("/usr/lib/$lib.$Driver", "/etc/X11/$lib") if -e "/usr/lib/$lib.$Driver";
}