diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-09-03 05:07:49 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-09-03 05:07:49 +0000 |
commit | 8a1304138f0e577cf51507d1facfa9fd69026f77 (patch) | |
tree | d1d714a96460d4551c7760afa485deec57c9f464 /perl-install | |
parent | 3ee934eba2b015f7aaddf5856651e58baca1b33b (diff) | |
download | drakx-8a1304138f0e577cf51507d1facfa9fd69026f77.tar drakx-8a1304138f0e577cf51507d1facfa9fd69026f77.tar.gz drakx-8a1304138f0e577cf51507d1facfa9fd69026f77.tar.bz2 drakx-8a1304138f0e577cf51507d1facfa9fd69026f77.tar.xz drakx-8a1304138f0e577cf51507d1facfa9fd69026f77.zip |
remove test_internet_connection(), use network::test instead
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/network/tools.pm | 17 |
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" || |