summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-26 16:48:29 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-26 16:48:29 +0000
commit0dbc544d91486f1a7cee04d8a799510b2d83651b (patch)
tree19674db999425a10f3e3e6cb6175b3e6b1374d20 /mdkapplet
parente8b4b287fbf54eeee0cec07dbce9adb3f2304692 (diff)
downloadmgaonline-0dbc544d91486f1a7cee04d8a799510b2d83651b.tar
mgaonline-0dbc544d91486f1a7cee04d8a799510b2d83651b.tar.gz
mgaonline-0dbc544d91486f1a7cee04d8a799510b2d83651b.tar.bz2
mgaonline-0dbc544d91486f1a7cee04d8a799510b2d83651b.tar.xz
mgaonline-0dbc544d91486f1a7cee04d8a799510b2d83651b.zip
(has_network_connection_2008) introduce back old isNetwork() under a
new name, thus enabling to run on 2008.0 by fixing network connectivity test It got removed in commit r240098 from blino onWed Mar 19 2008 (was: "simplify network detection")
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;