diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-10-29 03:06:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-10-29 03:06:22 +0000 |
commit | aa912d0daeaa6d4d84addfd2fc0ebba11e137edd (patch) | |
tree | 4c59162be3d838b69b3c709075e83b8bc9d61b7a /perl-install/Xconfigurator.pm | |
parent | a519379c3ae2eeb70650b6fd9e608bd285d2eba2 (diff) | |
download | drakx-aa912d0daeaa6d4d84addfd2fc0ebba11e137edd.tar drakx-aa912d0daeaa6d4d84addfd2fc0ebba11e137edd.tar.gz drakx-aa912d0daeaa6d4d84addfd2fc0ebba11e137edd.tar.bz2 drakx-aa912d0daeaa6d4d84addfd2fc0ebba11e137edd.tar.xz drakx-aa912d0daeaa6d4d84addfd2fc0ebba11e137edd.zip |
no_comment
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r-- | perl-install/Xconfigurator.pm | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index fd250fea0..3439510dc 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -5,7 +5,7 @@ use strict; use vars qw($in $install $resolution_wanted @depths @monitorSize2resolution @hsyncranges %min_hsync4wres @vsyncranges %depths @resolutions %serversdriver @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); +use common qw(:common :file :functional :system); use log; use Xconfigurator_consts; @@ -111,12 +111,8 @@ sub readMonitorsDB { sub rewriteInittab { my ($runlevel) = @_; - local @ARGV = grep { -r $_ } "$prefix/etc/inittab" or log::l("missing inittab!!!"), return; - local $^I = ''; - while (<>) { - s/^(id:)[35](:initdefault:)\s*$/$1$runlevel$2\n/; - print; - } + substInFile { s/^(id:)[35](:initdefault:)\s*$/$1$runlevel$2\n/ } + (grep { -r $_ } "$prefix/etc/inittab" or log::l("missing inittab!!!"), return); } sub keepOnlyLegalModes { @@ -708,7 +704,7 @@ sub main { __("Test again") => sub { $ok = testFinalConfig($o, 1) }, __("Quit") => sub { $quit = 1 }, ); - &{$c{$in->ask_from_list_('', + &{$c{$in->ask_from_list_([''], _("What do you want to do?"), [ grep { !ref } @c ])}}; } |