summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index b32f29a6..78849c7f 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -729,6 +729,15 @@ sub setLastTime() {
setVar('LASTCHECK', $date);
}
+sub has_network_connection_2008() {
+ 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);
+ to_bool($gw_address);
+}
+
sub checkNetwork() {
return if $checker_pid;
require network::tools;