summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm
index b02100c83..d9881f566 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -698,7 +698,9 @@ sub automatic_xconf {
modules::load_category('various/agpgart');
- my ($Driver) = cat_('/etc/X11/XF86Config-4') =~ /Section "Device".*Driver\s*"(.*?)"/s;
+ my $file = '/etc/X11/XF86Config';
+ $file = "$file-4" if -e "$file-4";
+ my ($Driver) = cat_($file) =~ /Section "Device".*Driver\s*"(.*?)"/s;
if ($Driver eq 'nvidia') {
modules::load('nvidia');
lomount_clp('nvidia', '/usr/lib/libGLcore.so.1');