summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-01-07 14:32:15 +0000
committerdamien <damien@mandriva.com>2002-01-07 14:32:15 +0000
commite0199832222d9d362e1350e2d43655535b3313c4 (patch)
tree8b9786c832a7cde1b264bb483466b7b5e0111b89 /perl-install/install_steps.pm
parent9097ddedb83688fc774d6d381337e5df086ed294 (diff)
downloaddrakx-e0199832222d9d362e1350e2d43655535b3313c4.tar
drakx-e0199832222d9d362e1350e2d43655535b3313c4.tar.gz
drakx-e0199832222d9d362e1350e2d43655535b3313c4.tar.bz2
drakx-e0199832222d9d362e1350e2d43655535b3313c4.tar.xz
drakx-e0199832222d9d362e1350e2d43655535b3313c4.zip
corrected network connection during install
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 991b4f8c6..f562cb272 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -584,6 +584,7 @@ sub configureNetwork {
my ($o) = @_;
require network;
network::configureNetwork2($o, $o->{prefix}, $o->{netc}, $o->{intf});
+ $o->{netcnx} ||= 'lan';
}
#------------------------------------------------------------------------------
@@ -939,7 +940,7 @@ sub exitInstall {
#------------------------------------------------------------------------------
sub hasNetwork {
my ($o) = @_;
- $o->{netcnx}{internet_cnx_choice} && $o->{netc}{NETWORKING} ne 'no'
+ $o->{netcnx}{type} && $o->{netc}{NETWORKING} ne 'no'
}
#------------------------------------------------------------------------------
@@ -950,7 +951,7 @@ sub upNetwork {
modules::write_conf($o->{prefix});
if (hasNetwork($o)) {
- if ($o->{netc}{internet_cnx_choice} =~ /adsl|network|cable/) {
+ if ($o->{netcnx}{type} =~ /adsl|lan|cable/) {
require network::netconnect;
network::netconnect::start_internet($o);
return 1;
@@ -971,7 +972,7 @@ sub downNetwork {
modules::write_conf($o->{prefix});
if (hasNetwork($o)) {
- if (!$pppOnly && $o->{netc}{internet_cnx_choice} =~ /adsl|network|cable/) {
+ if (!$pppOnly && $o->{netc}{type} =~ /adsl|lan|cable/) {
require network::netconnect;
network::netconnect::stop_internet($o);
return 1;