From 53b5abee1210a87a0004573a9dd7d7e3dfbe05ea Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 22 Jan 2001 12:19:45 +0000 Subject: $::beginner is deprecated, replaced by !$::expert --- perl-install/any.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index a74476345..0bb1a6dd3 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -89,7 +89,9 @@ sub setupBootloader { $more++ if $b->{bootUnsafe}; - if ($::beginner && $more >= 1) { + if (!$::expert && $more < 1) { + #- automatic + } elsif (!$::expert) { my @l = (__("First sector of drive (MBR)"), __("First sector of boot partition")); $in->set_help('setupBootloaderBeginner') unless $::isStandalone; @@ -105,7 +107,7 @@ sub setupBootloader { \@l, $l[!$onmbr]) eq $l[0] ? $boot : fsedit::get_root($fstab, 'boot')->{device}); } - } elsif ($more || !$::beginner) { + } else { $in->set_help(arch() =~ /sparc/ ? "setupSILOGeneral" : "setupBootloaderGeneral") unless $::isStandalone; #- TO MERGE ? if ($::expert) { @@ -129,7 +131,7 @@ arch() =~ /sparc/ ? ( { label => _("Boot device"), val => \$b->{boot}, list => [ map { "/dev/$_" } (map { $_->{device} } (@$hds, grep { !isFat($_) } @$fstab)), detect_devices::floppies() ], not_edit => !$::expert }, { label => _("LBA (doesn't work on old BIOSes)"), val => \$b->{lba32}, type => "bool", text => "lba" }, { label => _("Compact"), val => \$b->{compact}, type => "bool", text => _("compact") }, -{ label => _("Video mode"), val => \$b->{vga}, list => [ keys %bootloader::vga_modes ], not_edit => $::beginner }, +{ label => _("Video mode"), val => \$b->{vga}, list => [ keys %bootloader::vga_modes ], not_edit => !$::expert }, ), { label => _("Delay before booting default image"), val => \$b->{timeout} }, $security < 4 ? () : ( @@ -153,7 +155,7 @@ $security < 4 ? () : ( $b->{vga} = $bootloader::vga_modes{$b->{vga}} || $b->{vga}; } - until ($::beginner && $more <= 1) { + while ($::expert || $more > 1) { $in->set_help(arch() =~ /sparc/ ? 'setupSILOAddEntry' : 'setupBootloaderAddEntry') unless $::isStandalone; my $c = $in->ask_from_listf([''], _("Here are the different entries. @@ -563,7 +565,7 @@ sub wait_load_module { #-PO: the second is the vendor+model name $in->wait_message('', [ _("Installing driver for %s card %s", $type, $text), - $::beginner ? () : _("(module %s)", $module) + if_($::expert, _("(module %s)", $module)) ]); } -- cgit v1.2.1