summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-17 12:28:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-17 12:28:57 +0000
commit593e21a7ac60e7e88184aee132ca96abb6634883 (patch)
treed5690e267cc36bd8792b1edda5a57b6cee9689e8 /perl-install/Xconfig
parent9be1465ca747f986d897458a076dd2ba3d43d3cc (diff)
downloaddrakx-backup-do-not-use-593e21a7ac60e7e88184aee132ca96abb6634883.tar
drakx-backup-do-not-use-593e21a7ac60e7e88184aee132ca96abb6634883.tar.gz
drakx-backup-do-not-use-593e21a7ac60e7e88184aee132ca96abb6634883.tar.bz2
drakx-backup-do-not-use-593e21a7ac60e7e88184aee132ca96abb6634883.tar.xz
drakx-backup-do-not-use-593e21a7ac60e7e88184aee132ca96abb6634883.zip
use fbdev when the graphic card is unknown
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/card.pm14
1 files changed, 9 insertions, 5 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm
index 4195c325d..709283e2a 100644
--- a/perl-install/Xconfig/card.pm
+++ b/perl-install/Xconfig/card.pm
@@ -276,16 +276,20 @@ sub configure {
my @cards = probe();
@cards or @cards = {};
- if ($auto) {
- return 0 if !$cards[0]{server} && !$cards[0]{Driver};
- } else {
+ if (!$cards[0]{server} && !$cards[0]{Driver}) {
+ if ($options->{allowFB}) {
+ $cards[0]{Driver} = 'fbdev';
+ } elsif ($auto) {
+ log::l("Xconfig::card: auto failed (unknown card and no allowFB)");
+ return 0;
+ }
+ }
+ if (!$auto) {
card_config__not_listed($in, $cards[0], $options) or return;
}
my $card = multi_head_choose($in, $auto, @cards) or return;
- $card->{Driver} = 'fbdev' if $options->{allowFB} && !$card->{server} && !$card->{Driver};
-
xfree_and_glx_choose($in, $card, $auto) or return;
$card->{prog} = install_server($card, $options, $do_pkgs);