summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-01-02 10:14:49 +0000
committerOlivier Blin <oblin@mandriva.com>2008-01-02 10:14:49 +0000
commit8437e52a87e57fbfec47dd7e8642e82f0c32b47a (patch)
treee648e829af17d6858791a57344cfc3af8e5c3c57
parentccb61bae6097a124a2405234c495d8c69493f60a (diff)
downloadmgaonline-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-xmdkapplet22
1 files changed, 0 insertions, 22 deletions
diff --git a/mdkapplet b/mdkapplet
index c7ffed3b..d86541db 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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;