diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-01-02 10:14:49 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-01-02 10:14:49 +0000 |
commit | 8437e52a87e57fbfec47dd7e8642e82f0c32b47a (patch) | |
tree | e648e829af17d6858791a57344cfc3af8e5c3c57 | |
parent | ccb61bae6097a124a2405234c495d8c69493f60a (diff) | |
download | mgaonline-8437e52a87e57fbfec47dd7e8642e82f0c32b47a.tar mgaonline-8437e52a87e57fbfec47dd7e8642e82f0c32b47a.tar.gz mgaonline-8437e52a87e57fbfec47dd7e8642e82f0c32b47a.tar.bz2 mgaonline-8437e52a87e57fbfec47dd7e8642e82f0c32b47a.tar.xz mgaonline-8437e52a87e57fbfec47dd7e8642e82f0c32b47a.zip |
kill unused isNetwork() (was duplicated from net_applet...)
-rwxr-xr-x | mdkapplet | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -406,28 +406,6 @@ sub go2State { $state_global = $state; } -sub isNetwork() { - my $network; - if ($release <= 10.0) { - $network = gethostbyname("mandrivaonline.com") ? 1 : 0; - } elsif ($release <= 10.2) { - require network::netconnect; - require network::tools; - my ($netcnx, $netc, $intf) = ({}, {}, {}); - network::netconnect::read_net_conf($netcnx, $netc, $intf); - my ($_gw_intf, $_is_up, $gw_address, $_dns_server) = network::tools::get_internet_connection($netc, $intf); - $network = to_bool($gw_address); - } else { - require network::network; - require network::tools; - my $net = {}; - network::network::read_net_conf($net); - my ($_gw_intf, $_is_up, $gw_address, $_dns_server) = network::tools::get_internet_connection($net); - $network = to_bool($gw_address); - } - $network; -} - sub shouldStart() { my %p = getVarsFromSh($localfile); my $ret = $p{AUTOSTART} eq 'FALSE' ? 0 : 1; |