summaryrefslogtreecommitdiffstats
path: root/perl-install/install2.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-03 07:14:48 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-03 07:14:48 +0000
commit8fc41a1333f01496878ca0561f3ca1ad186b6d64 (patch)
tree2dd030c580d5b8e954bce95508ac7ecacc6127b9 /perl-install/install2.pm
parent671adafbfbb78f044970bc4af895ed43dff99757 (diff)
downloaddrakx-backup-do-not-use-8fc41a1333f01496878ca0561f3ca1ad186b6d64.tar
drakx-backup-do-not-use-8fc41a1333f01496878ca0561f3ca1ad186b6d64.tar.gz
drakx-backup-do-not-use-8fc41a1333f01496878ca0561f3ca1ad186b6d64.tar.bz2
drakx-backup-do-not-use-8fc41a1333f01496878ca0561f3ca1ad186b6d64.tar.xz
drakx-backup-do-not-use-8fc41a1333f01496878ca0561f3ca1ad186b6d64.zip
- merge network settings in a $net hash (it modifies $o fields too):
o $netc becomes $net->{network} and $net->{resolv} o $intf becomes $net->{ifcfg} - move zeroconf config stuff in write_zeroconf - read_tmdns_conf -> read_zeroconf - read_all_conf -> read_net_conf - configureNetwork2 -> configure_network - configure_network: write ifcfg files for ppp interfaces too - don't install wireless-tools in configure_network, this package is in basesystem - most functions don't need the file path as an argument in network::network - drop network::tools::remove_initscript - don't export too much from network::network - don't export from network::tools - remove adsl_unsupported_eci step in drakconnect - drop passwd2 field in network::adsl - drop $net->{isdn_internal} - network::netconnect : main -> safe_main - use network::netconnect::real_main during install - don't read network config in network::netconnect::real_main - install_steps::upNetwork : resolv.conf is already symlinked by network::network::configure_network when appropriate - try to fix install_any::generate_automatic_stage1_params to use a real interface configuration - put authentication stuff in $net->{auth} - drop network::ethernet::write_ether_conf - drop network::adsl::get_wizard - use 'static' instead of 'manual' as ADSL method - drop first_modem and its workarounds in network::modem - drop deprecated "multiple_internet_cnx" step in drakconnect - don't save /etc/sysconfig/drakconnect anymore - drop MDK::Common::Globals stuff - drop getIP in net_applet (Pixel) - drop $netc->{DHCP} - configure_network(): write resolv.conf even if a dhcp interface is configured
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r--perl-install/install2.pm23
1 files changed, 13 insertions, 10 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index 10a9abf8d..9b76bb651 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -54,12 +54,15 @@ $o = $::o = {
steps => \%steps::installSteps,
orderedSteps => \@steps::orderedInstallSteps,
-#- for the list of fields available for user and superuser, see @etc_pass_fields in install_steps.pm
-#- intf => { eth0 => { DEVICE => "eth0", IPADDR => '1.2.3.4', NETMASK => '255.255.255.128' } },
+ #- for the list of fields available, see network/network.pm
+ net => {
+ #- network => { HOSTNAME => 'abcd' },
+ #- resolv => { DOMAINNAME => 'foo.xyz' },
+ #- ifcfg => {
+ #- eth0 => { DEVICE => "eth0", IPADDR => '1.2.3.4', NETMASK => '255.255.255.128' }
+ #- },
+ },
- netc => {},
- intf => {},
-
#-step : the current one
#-prefix
#-mouse
@@ -266,7 +269,7 @@ sub configureNetwork {
my ($_clicked, $_ent_number, $auto) = @_;
#- get current configuration of network device.
require network::network;
- eval { network::network::read_all_conf($o->{prefix}, $o->{netc}, $o->{intf}) };
+ eval { network::network::read_net_conf($o->{net}) };
installStepsCall($o, $auto, 'configureNetwork') if !$o->{isUpgrade};
}
#------------------------------------------------------------------------------
@@ -480,17 +483,17 @@ sub main {
require network::network;
#- get stage1 network configuration if any.
log::l('found /tmp/network');
- $o->{netc} ||= {};
- add2hash($o->{netc}, network::network::read_conf('/tmp/network'));
+ #- FIXME: DOMAINNAME and DHCP_HOSTNAME shouldn't be in $o->{net}{network}
+ add2hash($o->{net}{network}, network::network::read_conf('/tmp/network'));
if (my ($file) = glob_('/tmp/ifcfg-*')) {
log::l("found network config file $file");
my $l = network::network::read_interface_conf($file);
- $o->{intf}{$l->{DEVICE}} ||= $l;
+ $o->{net}{ifcfg}{$l->{DEVICE}} ||= $l;
}
if (-e '/etc/resolv.conf') {
my $file = '/etc/resolv.conf';
log::l("found network config file $file");
- add2hash($o->{netc}, network::network::read_resolv_conf($file));
+ add2hash($o->{net}{resolv}, network::network::read_resolv_conf($file));
}
}