From 8a1304138f0e577cf51507d1facfa9fd69026f77 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 3 Sep 2004 05:07:49 +0000 Subject: remove test_internet_connection(), use network::test instead --- perl-install/network/tools.pm | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'perl-install') 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" || -- cgit v1.2.1