diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-26 16:48:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-26 16:48:29 +0000 |
commit | 0dbc544d91486f1a7cee04d8a799510b2d83651b (patch) | |
tree | 19674db999425a10f3e3e6cb6175b3e6b1374d20 | |
parent | e8b4b287fbf54eeee0cec07dbce9adb3f2304692 (diff) | |
download | mgaonline-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")
-rwxr-xr-x | mdkapplet | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |