summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/adsl.pm1
-rw-r--r--perl-install/network/netconnect.pm2
2 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index a922585cc..61a0d8f87 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -58,7 +58,6 @@ sub adsl_ask_info {
#- output:
#- true/false : success|failed
sub adsl_detect {
- return;
my ($interface) = @_;
run_program::rooted($prefix, "ifconfig $interface 10.0.0.10 netmask 255.255.255.0");
my $ret=run_program::rooted($prefix, "/bin/ping -c 1 10.0.0.138 2> /dev/null");
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index a1fbee552..43737064e 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -73,7 +73,7 @@ sub detect {
require network::adsl;
network::adsl->import;
map {
- ( !$net_install and adsl_detect("", $_->[0]) ) ? $auto_detect->{adsl}=$_->[0] : $auto_detect->{lan}{$_->[0]}=$_->[1]; } @all_cards;
+ ( !$net_install and adsl_detect($_->[0]) ) ? $auto_detect->{adsl}=$_->[0] : $auto_detect->{lan}{$_->[0]}=$_->[1]; } @all_cards;
my $modem={};
require network::modem;
network::modem->import;