summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-01-21 12:42:51 +0000
committerdamien <damien@mandriva.com>2002-01-21 12:42:51 +0000
commit46250798595733082831db5785d03efd61bfa4c7 (patch)
treee56f139bcda63d0499991d3d33d1686be4943b94 /perl-install/install_steps.pm
parent4164d6b0846b983665c9c2f04185b80fc7226f97 (diff)
downloaddrakx-backup-do-not-use-46250798595733082831db5785d03efd61bfa4c7.tar
drakx-backup-do-not-use-46250798595733082831db5785d03efd61bfa4c7.tar.gz
drakx-backup-do-not-use-46250798595733082831db5785d03efd61bfa4c7.tar.bz2
drakx-backup-do-not-use-46250798595733082831db5785d03efd61bfa4c7.tar.xz
drakx-backup-do-not-use-46250798595733082831db5785d03efd61bfa4c7.zip
corrected network down
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index ab82c6a84..03ffa01b3 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -968,15 +968,15 @@ sub upNetwork {
#------------------------------------------------------------------------------
sub downNetwork {
- my ($o, $pppOnly) = @_;
+ my ($o, $costlyOnly) = @_;
modules::write_conf($o->{prefix});
if (hasNetwork($o)) {
- if (!$pppOnly && $o->{netc}{type} =~ /adsl|lan|cable/) {
+ if (!$costlyOnly) {
require network::netconnect;
network::netconnect::stop_internet($o);
return 1;
- } else {
+ } elsif ($o->{netc}{type} !~ /adsl|lan|cable/) {
require network::netconnect;
network::netconnect::stop_internet($o);
run_program::rooted($o->{prefix}, "/etc/rc.d/init.d/syslog", "stop");