summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-25 09:47:06 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-25 09:47:06 +0000
commit9b8dddbc720899a7872d82e39405997ab6949df4 (patch)
treee294bf4db32549a4592ce398b694d4a9cd389006 /perl-install/install_steps_interactive.pm
parent9062c92ba51a7170424f825c60e5ff5ec46c85dd (diff)
downloaddrakx-backup-do-not-use-9b8dddbc720899a7872d82e39405997ab6949df4.tar
drakx-backup-do-not-use-9b8dddbc720899a7872d82e39405997ab6949df4.tar.gz
drakx-backup-do-not-use-9b8dddbc720899a7872d82e39405997ab6949df4.tar.bz2
drakx-backup-do-not-use-9b8dddbc720899a7872d82e39405997ab6949df4.tar.xz
drakx-backup-do-not-use-9b8dddbc720899a7872d82e39405997ab6949df4.zip
no_comment
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index dca0255d0..1ad5d3e2a 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -10,6 +10,7 @@ use vars qw(@ISA);
use common qw(:common);
use partition_table qw(:types);
use install_steps;
+use network;
use modules;
use lang;
use fs;
@@ -122,7 +123,16 @@ sub configureNetwork($) {
}
if ($r !~ /^Keep/) {
- $o->configureNetworkAsk or return;
+ my @l = first(network::getNet());
+ @l = ($l[0]) unless $::expert; # keep only one
+
+ foreach my $dev (@l) {
+ my ($l) = grep { $_->{DEVICE} eq $dev } @{$o->{intf}};
+
+ push @{$o->{intf}}, $l = { DEVICE => $dev } unless $l;
+ $o->configureNetworkIntf($l);
+ }
+ $o->configureNetworkNet($o->{netc} ||= {});
}
$o->SUPER::configureNetwork;
}