summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
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");