summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfigurator.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-30 13:13:00 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-30 13:13:00 +0000
commitfaefd04705779f719ea87759eed5e129a0ec5e27 (patch)
tree6aa614ad56d8f70401a9e44e41270af1b403876d /perl-install/Xconfigurator.pm
parentdadaa56cd93005872900da1b75432b062f9fa960 (diff)
downloaddrakx-backup-do-not-use-faefd04705779f719ea87759eed5e129a0ec5e27.tar
drakx-backup-do-not-use-faefd04705779f719ea87759eed5e129a0ec5e27.tar.gz
drakx-backup-do-not-use-faefd04705779f719ea87759eed5e129a0ec5e27.tar.bz2
drakx-backup-do-not-use-faefd04705779f719ea87759eed5e129a0ec5e27.tar.xz
drakx-backup-do-not-use-faefd04705779f719ea87759eed5e129a0ec5e27.zip
no_comment
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r--perl-install/Xconfigurator.pm17
1 files changed, 10 insertions, 7 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 04e7326b8..6068706d6 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -2,7 +2,7 @@ package Xconfigurator;
use diagnostics;
use strict;
-use vars qw($in $install $resolution_wanted @depths @monitorSize2resolution @hsyncranges %min_hsync4wres @vsyncranges %depths @resolutions @svgaservers @accelservers @allservers %videomemory @ramdac_name @ramdac_id @clockchip_name @clockchip_id %keymap_translate %standard_monitors $intro_text $finalcomment_text $s3_comment $cirrus_comment $probeonlywarning_text $monitorintro_text $hsyncintro_text $vsyncintro_text $XF86firstchunk_text $keyboardsection_start $keyboardsection_part2 $keyboardsection_end $pointersection_text1 $pointersection_text2 $monitorsection_text1 $monitorsection_text2 $monitorsection_text3 $monitorsection_text4 $modelines_text_Trident_TG_96xx $modelines_text $devicesection_text $screensection_text1);
+use vars qw($in $install $resolution_wanted @depths @monitorSize2resolution @hsyncranges %min_hsync4wres @vsyncranges %depths @resolutions @svgaservers @accelservers @allservers %videomemory @ramdac_name @ramdac_id @clockchip_name @clockchip_id %keymap_translate %standard_monitors $intro_text $finalcomment_text $s3_comment $cirrus_comment $probeonlywarning_text $monitorintro_text $hsyncintro_text $vsyncintro_text $XF86firstchunk_text $keyboardsection_start $keyboardsection_part2 $keyboardsection_end $pointersection_text1 $pointersection_text2 $monitorsection_text1 $monitorsection_text2 $monitorsection_text3 $monitorsection_text4 $modelines_text_Trident_TG_96xx $modelines_text $devicesection_text $screensection_text1 %lines %xkb_options);
use pci_probing::main;
use common qw(:common :file :functional);
@@ -146,6 +146,7 @@ sub cardConfigurationAuto() {
($card->{identifier}, $_) = @$c;
$card->{type} = $1 if /Card:(.*)/;
$card->{server} = $1 if /Server:(.*)/;
+ push @{$card->{lines}}, @{$lines{$card->{identifier}} || []};
}
$card;
}
@@ -263,6 +264,11 @@ sub testFinalConfig($;$) {
unlink "$prefix/tmp/.X9-lock";
+ #- create a link from the non-prefixed /tmp/.X11-unix/X9 to the prefixed one
+ #- that way, you can talk to :9 without doing a chroot
+ unlink "/tmp/.X11-unix/X9" if $prefix;
+ symlink "$prefix/tmp/.X11-unix/X9", "/tmp/.X11-unix/X9" if $prefix;
+
my $f_err = "$prefix/tmp/Xoutput";
my $pid;
unless ($pid = fork) {
@@ -272,13 +278,14 @@ sub testFinalConfig($;$) {
chroot $prefix if $prefix;
exec @l, ":9" or exit 'true';
}
+
do { sleep 1 } until c::Xtest(":9") || waitpid($pid, c::WNOHANG());
my $b = before_leaving { unlink $f_err };
local *F; open F, $f_err;
while (<F>) {
- if (/^Fatal server error/) {
+ if (/\berror\b/i) {
my @msg; while (<F>) {
/^$/ and last;
push @msg, $_;
@@ -290,11 +297,6 @@ sub testFinalConfig($;$) {
}
}
- #- create a link from the non-prefixed /tmp/.X11-unix/X9 to the prefixed one
- #- that way, you can talk to :9 without doing a chroot
- unlink "/tmp/.X11-unix/X9" if $prefix;
- symlink "$prefix/tmp/.X11-unix/X9", "/tmp/.X11-unix/X9" if $prefix;
-
local *F;
open F, "|perl" or die '';
print F "use lib qw(", join(' ', @INC), ");\n";
@@ -541,6 +543,7 @@ sub write_XF86Config {
print F " RightAlt ", ($O->{altmeta} ? "ModeShift" : "Meta"), "\n";
print F $keyboardsection_part2;
print F qq( XkbLayout "$O->{xkb_keymap}"\n);
+ print F join '', map { " $_\n" } @{$xkb_options{$O->{xkb_keymap}} || []};
print F $keyboardsection_end;
#- Write pointer section.