summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorpad <pad@mandriva.com>1999-09-04 22:41:06 +0000
committerpad <pad@mandriva.com>1999-09-04 22:41:06 +0000
commitfa70060091fcae8b97d8a958f7a8e4dcb594b8ce (patch)
tree9e21393f038268dc0759f721aa63418fcbaeee70 /perl-install/install_steps_interactive.pm
parent7670157b32ceb6f0437c0b7b154ee1f4bf454e62 (diff)
downloaddrakx-backup-do-not-use-fa70060091fcae8b97d8a958f7a8e4dcb594b8ce.tar
drakx-backup-do-not-use-fa70060091fcae8b97d8a958f7a8e4dcb594b8ce.tar.gz
drakx-backup-do-not-use-fa70060091fcae8b97d8a958f7a8e4dcb594b8ce.tar.bz2
drakx-backup-do-not-use-fa70060091fcae8b97d8a958f7a8e4dcb594b8ce.tar.xz
drakx-backup-do-not-use-fa70060091fcae8b97d8a958f7a8e4dcb594b8ce.zip
t le ask_from_entries avec les callbacks
refait code sur la gestion des erreurs refait code install2, la gestion des defaults, les dependances des profiles et modules, les combo dans interactive
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm21
1 files changed, 9 insertions, 12 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index af70a6fa1..5254dd10f 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -89,7 +89,6 @@ sub rebootNeeded($) {
install_steps::rebootNeeded($o);
}
#------------------------------------------------------------------------------
-
sub choosePartitionsToFormat($$) {
my ($o, $fstab) = @_;
@@ -164,6 +163,7 @@ sub timeConfig {
install_steps::timeConfig($o,$f);
}
+#------------------------------------------------------------------------------
sub printerConfig($) {
my ($o) = @_;
$o->{printer}{want} =
@@ -171,7 +171,7 @@ sub printerConfig($) {
_("Would you like to configure a printer?"),
$o->{printer}{want});
return if !$o->{printer}{want};
-
+
$o->{printer}{complete} = 0;
if ($::expert) {
#std info
@@ -189,7 +189,7 @@ sub printerConfig($) {
},
);
}
-
+
$o->{printer}{str_type} =
$o->ask_from_list_(_("Select Printer Connection"),
_("How is the printer connected?"),
@@ -197,7 +197,7 @@ sub printerConfig($) {
${$o->{printer}}{str_type},
);
$o->{printer}{TYPE} = $printer::printer_type{$o->{printer}{str_type}};
-
+
if ($o->{printer}{TYPE} eq "LOCAL") {
eval { modules::load("lp"); };
my @port = ();
@@ -206,17 +206,14 @@ sub printerConfig($) {
push @port, "/dev/$_" if open LP, ">/dev/$_"
}
eval { modules::unload("lp") };
-
- my $string = _("What device is your printer connected to
-(note that /dev/lp0 is equivalent to LPT1:)?\n");
- $string .= _("I detect :");
- $string .= join(", ", @port);
+ @port =("lp0", "lp1", "lp2");
$o->{printer}{DEVICE} = $port[0] if $port[0];
-
+
+
return if !$o->ask_from_entries_ref(_("Local Printer Device"),
- $string,
+ _("What device is your printer connected to \n(note that /dev/lp0 is equivalent to LPT1:)?\n"),
[_("Printer Device:")],
- [\$o->{printer}{DEVICE}],
+ [{val => \$o->{printer}{DEVICE}, list => \@port, is_edit => 1}],
);
#TAKE A GOODDEFAULT TODO