diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-02-10 11:58:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-02-10 11:58:09 +0000 |
commit | 230c75dfce6576f56448b761a5ee84e7e7b1956e (patch) | |
tree | fa04e757bd405b1d89c7a68e8ed79f81bf024e36 /perl-install/install2.pm | |
parent | 8031ef158730d1389fe00e6926c7d01b29b9acf4 (diff) | |
download | drakx-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar drakx-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar.gz drakx-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar.bz2 drakx-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar.xz drakx-230c75dfce6576f56448b761a5ee84e7e7b1956e.zip |
add step summary. remove steps configureTimezone and configurePrinter
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index eb2be4e7e..1345f0ae2 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -50,9 +50,8 @@ my (%installSteps, @orderedInstallSteps); installPackages => [ __("Install system"), 1, -1, '', ["formatPartitions", "selectInstallClass"] ], configureNetwork => [ __("Configure networking"), 1, 1, '', "formatPartitions" ], #- installCrypto => [ __("Cryptographic"), 1, 1, '!$::expert', "configureNetwork" ], - configureTimezone => [ __("Configure timezone"), 1, 1, '', "installPackages" ], + summary => [ __("Summary"), 1, 0, '', "installPackages" ], configureServices => [ __("Configure services"), 1, 1, '!$::expert', "installPackages" ], - configurePrinter => [ __("Configure printer"), 1, 0, '', "installPackages" ], setRootPassword => [ __("Set root password"), 1, 1, '', "installPackages" ], addUser => [ __("Add a user"), 1, 1, '', "installPackages" ], arch() !~ /alpha/ ? ( @@ -362,6 +361,8 @@ VISOR=no } #------------------------------------------------------------------------------ +sub summary { $o->summary($_[1] == 1) } +#------------------------------------------------------------------------------ sub configureNetwork { #- get current configuration of network device. require network; @@ -371,25 +372,8 @@ sub configureNetwork { #------------------------------------------------------------------------------ sub installCrypto { $o->installCrypto } #------------------------------------------------------------------------------ -sub configureTimezone { - my ($clicked) = @_; - my $f = "$o->{prefix}/etc/sysconfig/clock"; - - require timezone; - if ($o->{isUpgrade} && -r $f && -s $f > 0) { - return if $_[1] == 1 && !$clicked; - #- can't be done in install cuz' timeconfig %post creates funny things - add2hash($o->{timezone}, { timezone::read($f) }); - } - $o->{timezone}{timezone} ||= timezone::bestTimezone(lang::lang2text($o->{lang})); - $o->{timezone}{UTC} = $::expert && !grep { isFat($_) || isNT($_) } @{$o->{fstab}} unless exists $o->{timezone}{UTC}; - $o->configureTimezone($clicked); -} -#------------------------------------------------------------------------------ sub configureServices { $::expert and $o->configureServices } #------------------------------------------------------------------------------ -sub configurePrinter { $o->configurePrinter($_[0]) } -#------------------------------------------------------------------------------ sub setRootPassword { return if $o->{isUpgrade}; |