summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-21 01:25:00 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-21 01:25:00 +0000
commit3401eeed7427026c5354496bdbbdcfc6f18b38b3 (patch)
tree423c658f22e69b91e263044ed9848499f5e1172d /perl-install/install_steps_interactive.pm
parentdc9ba01917bf001fe0d5975f167cbb0ded79aa11 (diff)
downloaddrakx-backup-do-not-use-3401eeed7427026c5354496bdbbdcfc6f18b38b3.tar
drakx-backup-do-not-use-3401eeed7427026c5354496bdbbdcfc6f18b38b3.tar.gz
drakx-backup-do-not-use-3401eeed7427026c5354496bdbbdcfc6f18b38b3.tar.bz2
drakx-backup-do-not-use-3401eeed7427026c5354496bdbbdcfc6f18b38b3.tar.xz
drakx-backup-do-not-use-3401eeed7427026c5354496bdbbdcfc6f18b38b3.zip
no_comment
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm33
1 files changed, 24 insertions, 9 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 804eadd5c..a428682a3 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -131,12 +131,15 @@ sub selectMouse {
$name = $o->ask_from_list_('', _("What is the type of your mouse?"), [ mouse::names() ], $name);
$o->{mouse} = mouse::name2mouse($name);
}
- $o->{mouse}{XEMU3} = 'yes' if $o->{mouse}{nbuttons} < 3 && (!$::expert || $o->ask_yesorno('', _("Emulate third button?"), 1));
-
- $o->{mouse}{device} = mouse::serial_ports_names2dev(
- $o->ask_from_list(_("Mouse Port"),
- _("Which serial port is your mouse connected to?"),
- [ mouse::serial_ports_names() ])) if $o->{mouse}{device} eq "ttyS";
+ $o->{mouse}{XEMU3} = 'yes'; #- if $o->{mouse}{nbuttons} < 3 && $o->ask_yesorno('', _("Emulate third button?"), 1);
+
+ if ($o->{mouse}{device} eq "ttyS") {
+ $o->set_help('selectSerialPort');
+ $o->{mouse}{device} = mouse::serial_ports_names2dev(
+ $o->ask_from_list(_("Mouse Port"),
+ _("Which serial port is your mouse connected to?"),
+ [ mouse::serial_ports_names() ]));
+ }
$o->setup_thiskind('serial_usb', !$::expert, 0) if $o->{mouse}{device} eq "usbmouse";
@@ -327,6 +330,7 @@ sub configureNetworkIntf {
delete $intf->{NETWORK};
delete $intf->{BROADCAST};
my @fields = qw(IPADDR NETMASK);
+ $o->set_help('configureNetworkIP');
$o->ask_from_entries_ref(_("Configuring network device %s", $intf->{DEVICE}),
_("Please enter the IP configuration for this machine.
Each item should be entered as an IP address in dotted-decimal
@@ -382,10 +386,12 @@ sub pppConfig {
}
}
- $m->{device} ||= mouse::serial_ports_names2dev(
+ $m->{device} ||= $o->set_help('selectSerialPort') &&
+ mouse::serial_ports_names2dev(
$o->ask_from_list('', _("Which serial port is your modem connected to?"),
[ mouse::serial_ports_names ]));
+ $o->set_help('configureNetworkISP');
install_steps::pppConfig($o) if $o->ask_from_entries_refH('',
_("Dialup options"), [
_("Connection name") => \$m->{connection},
@@ -472,6 +478,10 @@ sub setRootPassword($) {
return if $o->{security} < 1 && !$clicked;
+ $o->set_help("setRootPassword",
+ $o->{installClass} eq "server" || $::expert ? "setRootPasswordMd5" : (),
+ $::beginner ? () : "setRootPasswordNIS");
+
$o->ask_from_entries_refH([_("Set root password"), _("Ok"), $o->{security} > 2 ? () : _("No password")],
_("Set root password"), [
_("Password") => { val => \$sup->{password}, hidden => 1 },
@@ -596,14 +606,17 @@ sub setupBootloader {
if ($::beginner && $more == 1) {
my @l = (__("First sector of drive (MBR)"), __("First sector of boot partition"));
+ $o->set_help('setupBootloaderBeginner');
my $boot = $o->{hds}[0]{device};
my $onmbr = "/dev/$boot" eq $b->{boot};
$b->{boot} = "/dev/$boot" if $o->ask_from_list_(_("LILO Installation"),
_("Where do you want to install the bootloader?"),
\@l, $l[!$onmbr]) eq $l[0];
} elsif ($more || !$::beginner) {
+ $o->set_help("setupBootloaderGeneral");
+
$::expert and $o->ask_yesorno('', _("Do you want to use LILO?"), 1) || return;
-
+
my @l = (
_("Boot device") => { val => \$b->{boot}, list => [ map { "/dev/$_" } (map { $_->{device} } @{$o->{hds}}, @{$o->{fstab}}), detect_devices::floppies ], not_edit => !$::expert },
_("Linear (needed for some SCSI drives)") => { val => \$b->{linear}, type => "bool", text => _("linear") },
@@ -629,9 +642,10 @@ _("Restrict command line options") => { val => \$b->{restricted}, type => "bool"
}
until ($::beginner && $more <= 1) {
+ $o->set_help('setupBootloaderAddEntry');
my $c = $o->ask_from_list_([''],
_("Here are the following entries in LILO.
-You can add some more or change the existent ones."),
+You can add some more or change the existing ones."),
[ (sort @{[map_each { "$::b->{label} ($::a)" . ($b->{default} eq $::b->{label} && " *") } %{$b->{entries}}]}), __("Add"), __("Done") ],
);
$c eq "Done" and last;
@@ -713,6 +727,7 @@ sub miscellaneousNetwork {
my ($o, $clicked) = @_;
my $u = $o->{miscellaneous} ||= {};
+ $o->set_help('configureNetworkProxy');
!$::beginner || $clicked and $o->ask_from_entries_ref('',
_("Proxies configuration"),
[ _("HTTP proxy"),