diff options
author | Francois Pons <fpons@mandriva.com> | 2000-04-28 01:28:59 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-04-28 01:28:59 +0000 |
commit | b415ea0d3202378cf47c5b7fc9c82f081e9c7f72 (patch) | |
tree | 8656ab7cc84846b3b67f22511a9c9f3b891c4336 /perl-install/install2.pm | |
parent | 053755d74f85fa59781581589ddd06cb59949333 (diff) | |
download | drakx-backup-do-not-use-b415ea0d3202378cf47c5b7fc9c82f081e9c7f72.tar drakx-backup-do-not-use-b415ea0d3202378cf47c5b7fc9c82f081e9c7f72.tar.gz drakx-backup-do-not-use-b415ea0d3202378cf47c5b7fc9c82f081e9c7f72.tar.bz2 drakx-backup-do-not-use-b415ea0d3202378cf47c5b7fc9c82f081e9c7f72.tar.xz drakx-backup-do-not-use-b415ea0d3202378cf47c5b7fc9c82f081e9c7f72.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index fd9cfc9dc..a69b02e3e 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -48,7 +48,7 @@ my (%installSteps, @orderedInstallSteps); miscellaneous => [ __("Miscellaneous"), 1, 1, '$::beginner' ], partitionDisks => [ __("Setup filesystems"), 1, 0, '', "selectInstallClass" ], formatPartitions => [ __("Format partitions"), 1, -1, '', "partitionDisks" ], - choosePackages => [ __("Choose packages to install"), 1, 1, '$::beginner', "formatPartitions" ], + choosePackages => [ __("Choose packages to install"), 1, -2, '$::beginner', "formatPartitions" ], doInstallStep => [ __("Install system"), 1, -1, '', ["formatPartitions", "selectInstallClass"] ], configureNetwork => [ __("Configure networking"), 1, 1, '$::beginner && !$::corporate', "formatPartitions" ], installCrypto => [ __("Cryptographic"), 1, 1, '!$::expert', "configureNetwork" ], @@ -399,18 +399,19 @@ sub miscellaneous { #------------------------------------------------------------------------------ sub configureNetwork { - my ($clicked) = @_; - - if ($o->{isUpgrade} && !$clicked) { - $o->{netc} or $o->{netc} = {}; + #- get current configuration of network device. + eval { + $o->{netc} ||= {}; $o->{intf} ||= []; add2hash($o->{netc}, network::read_conf("$o->{prefix}/etc/sysconfig/network")) if -r "$o->{prefix}/etc/sysconfig/network"; add2hash($o->{netc}, network::read_resolv_conf("$o->{prefix}/etc/resolv.conf")) if -r "$o->{prefix}/etc/resolv.conf"; foreach (all("$o->{prefix}/etc/sysconfig/network-scripts")) { if (/ifcfg-(\w+)/ && $1 !~ /^ppp/) { - push @{$o->{intf}}, { getVarsFromSh("$o->{prefix}/etc/sysconfig/network-scripts/$_") }; + my $intf = network::findIntf($o->{intf}, $1); + add2hash($intf, { getVarsFromSh("$o->{prefix}/etc/sysconfig/network-scripts/$_") }); } } - } + }; + $o->configureNetwork($_[1] == 1); } #------------------------------------------------------------------------------ |