diff options
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r-- | perl-install/Xconfig/card.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm index ee467fcd5..8e47b3205 100644 --- a/perl-install/Xconfig/card.pm +++ b/perl-install/Xconfig/card.pm @@ -387,9 +387,11 @@ sub install_server { if (my $file = $driver_to_libgl_config{$card->{Driver2}}) { if (-e $file) { symlinkf($file, "/etc/ld.so.conf.d/GL.conf"); - system("/sbin/ldconfig") if $::isStandalone } + } else { + eval { rm_rf("/etc/ld.so.conf.d/GL.conf") }; } + system("/sbin/ldconfig") if $::isStandalone; if ($card->{Driver2} eq 'fglrx' && -e "$::prefix/usr/X11R6/lib/modules/dri/fglrx_dri.so" && -e "$::prefix/usr/X11R6/lib/modules/drivers/fglrx_drv.o") { |