summaryrefslogtreecommitdiffstats
path: root/perl-install/network/tools.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-03 05:07:49 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-03 05:07:49 +0000
commit8a1304138f0e577cf51507d1facfa9fd69026f77 (patch)
treed1d714a96460d4551c7760afa485deec57c9f464 /perl-install/network/tools.pm
parent3ee934eba2b015f7aaddf5856651e58baca1b33b (diff)
downloaddrakx-backup-do-not-use-8a1304138f0e577cf51507d1facfa9fd69026f77.tar
drakx-backup-do-not-use-8a1304138f0e577cf51507d1facfa9fd69026f77.tar.gz
drakx-backup-do-not-use-8a1304138f0e577cf51507d1facfa9fd69026f77.tar.bz2
drakx-backup-do-not-use-8a1304138f0e577cf51507d1facfa9fd69026f77.tar.xz
drakx-backup-do-not-use-8a1304138f0e577cf51507d1facfa9fd69026f77.zip
remove test_internet_connection(), use network::test instead
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r--perl-install/network/tools.pm17
1 files changed, 0 insertions, 17 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 8fd8fbd2c..fd41f3afe 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -276,23 +276,6 @@ sub get_internet_connection {
return $gw_intf, $is_up, $gw_address, $netc->{dnsServer};
}
-#- returns (ping to mandrakesoft.com, resolved host)
-sub test_internet_connection() {
- if (my $ip = gethostbyname('mandrakesoft.com')) {
- require Net::Ping;
- my $p;
- if ($>) {
- $p = Net::Ping->new('tcp');
- # Try connecting to the www port instead of the echo port
- $p->{port_num} = getservbyname('http', 'tcp');
- } else {
- $p = Net::Ping->new('icmp');
- }
- #- default timeout is 5 seconds
- return $ip, to_bool($p->ping($ip));
- }
-}
-
sub get_interface_type {
my ($interface) = @_;
$interface->{DEVICE} =~ /^(eth|ath|wlan)/ && "ethernet" ||