summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-12 19:54:50 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-12 19:54:50 +0000
commit7852f18586352b52a5ffd8892c1c4f25cf60b745 (patch)
treebf2dacbabd27d7b8385e52b4e12098339b703dfc /lib/Xconfig
parentb4df04aae528801847e2b2849a7832803bdbb49e (diff)
downloaddrakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar
drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar.gz
drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar.bz2
drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar.xz
drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.zip
(may_use_Driver2) simplify
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/proprietary.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index 756387c..fba7854 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -99,9 +99,8 @@ sub may_use_Driver2 {
$card2;
} elsif ($card2->{Driver} eq 'fglrx') {
$check_drv->('fglrx_drv', "fglrx$card2->{DriverVersion}") or return;
- -e "$::prefix/usr/$lib/fglrx$card2->{DriverVersion}/dri/fglrx_dri.so" ||
- -e "$::prefix$modules_dir/dri/fglrx_dri.so" ||
- -e "$::prefix/usr/$lib/dri/fglrx_dri.so" or
+ find { -e "$::prefix/$_/dri/fglrx_dri.so" } (
+ "/usr/$lib/fglrx$card2->{DriverVersion}", $modules_dir, "/usr/$lib") or
log::l("proprietary fglrx_dri.so missing"), return;
log::explanations("Using specific ATI fglrx and DRI drivers");