diff options
author | pad <pad@mandriva.com> | 1999-09-03 13:44:30 +0000 |
---|---|---|
committer | pad <pad@mandriva.com> | 1999-09-03 13:44:30 +0000 |
commit | 59a71876a17e616e3706c80cddf3e74f34bbcf67 (patch) | |
tree | e52f9979a37b9e3256a5f764d8c9f4cc85b9464f /perl-install/install_steps.pm | |
parent | 874f08a1316d73d6f09f0ca2df235dac495a387b (diff) | |
download | drakx-backup-do-not-use-59a71876a17e616e3706c80cddf3e74f34bbcf67.tar drakx-backup-do-not-use-59a71876a17e616e3706c80cddf3e74f34bbcf67.tar.gz drakx-backup-do-not-use-59a71876a17e616e3706c80cddf3e74f34bbcf67.tar.bz2 drakx-backup-do-not-use-59a71876a17e616e3706c80cddf3e74f34bbcf67.tar.xz drakx-backup-do-not-use-59a71876a17e616e3706c80cddf3e74f34bbcf67.zip |
pad stuff
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 1fbeeff0f..8a912f680 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -47,16 +47,14 @@ sub enteringStep($$) { for (my $s = $o->{steps}{first}; $s; $s = $o->{steps}{$s}{next}) { next if $o->{steps}{$s}{done} && !$o->{steps}{$s}{redoable}; + next if $o->{steps}{$s}{reachable}; my $reachable = 1; if (my $needs = $o->{steps}{$s}{needs}) { my @l = ref $needs ? @$needs : $needs; $reachable = min(map { $o->{steps}{$_}{done} || 0 } @l); } - if ($reachable && !$o->{steps}{$s}{reachable}) { - $o->{steps}{$s}{reachable} = 1; - $o->step_set_reachable($s); - } + $o->{steps}{$s}{reachable} = 1, $o->step_set_reachable($s) if $reachable; } } sub leavingStep($$) { @@ -84,6 +82,11 @@ sub chooseLanguage($) { sub chooseKeyboard($) { $o->default("keyboard"); } +sub choosePrinter($) { + $o->default("printer"); +} + + sub selectInstallOrUpgrade($) { $o->default("isUpgrade") || 0; } @@ -96,7 +99,7 @@ sub setupSCSI { sub doPartitionDisks($$) { my ($o, $hds) = @_; - fsedit::auto_allocate($hds, $o->{default}{partitions}); + fsedit::auto_allocate($hds, $o->default("partitions")); } sub rebootNeeded($) { my ($o) = @_; @@ -179,7 +182,11 @@ sub timeConfig { } sub servicesConfig {} -sub printerConfig {} +sub printerConfig { + my($o) = @_; + my $printer = $o->default("printer"); + printer::configure_queue($printer) if $printer; +} sub setRootPassword($) { my ($o) = @_; |