summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfigurator.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-15 10:04:21 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-15 10:04:21 +0000
commitc3837a970155f43758362de4f894ce14cb5820b2 (patch)
treefc03c5ddfad7346709feb6c79b1b5c0702ae352b /perl-install/Xconfigurator.pm
parentf2c80efd316af9a6a380468ffa3fa506fad2cac3 (diff)
downloaddrakx-c3837a970155f43758362de4f894ce14cb5820b2.tar
drakx-c3837a970155f43758362de4f894ce14cb5820b2.tar.gz
drakx-c3837a970155f43758362de4f894ce14cb5820b2.tar.bz2
drakx-c3837a970155f43758362de4f894ce14cb5820b2.tar.xz
drakx-c3837a970155f43758362de4f894ce14cb5820b2.zip
SiS card are no more prefered for XF3.
added standalone support to prefer XF3 or XF4 to keep current used server version.
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r--perl-install/Xconfigurator.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 459932c1f..eb18f971a 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -220,8 +220,13 @@ sub cardConfiguration(;$$$) {
$card->{prefer_xf3} = ($card->{type} =~ /RIVA TNT/ ||
$card->{type} =~ /RIVA128/ ||
$card->{type} =~ /GeForce/ ||
- $card->{type} =~ /NeoMagic / ||
- $card->{type} =~ /SiS/);
+ $card->{type} =~ /NeoMagic /);
+ #- take into account current environment in standalone to keep
+ #- the XFree86 version.
+ if ($::isStandalone) {
+ readlink("$prefix/etc/X11/X") =~ /XFree86/ and $card->{prefer_xf3} = 0;
+ readlink("$prefix/etc/X11/X") =~ /XF86_/ and $card->{prefer_xf3} = 1;
+ }
#- basic installation, use of XFree 4.0 or XFree 3.3.
my ($xf4_ver, $xf3_ver) = ("4.0.2", "3.3.6");