diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-19 15:29:31 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-19 15:29:31 +0000 |
commit | bb13d243eaf272ccf63ac57d4ea375aaf7a5eaf4 (patch) | |
tree | f6adb33a262e67a4ffe9fffd930d786d0c3cffc8 | |
parent | e22a710bf5a4263dd3ced55ebebbaae433fdaffc (diff) | |
download | drakx-net-bb13d243eaf272ccf63ac57d4ea375aaf7a5eaf4.tar drakx-net-bb13d243eaf272ccf63ac57d4ea375aaf7a5eaf4.tar.gz drakx-net-bb13d243eaf272ccf63ac57d4ea375aaf7a5eaf4.tar.bz2 drakx-net-bb13d243eaf272ccf63ac57d4ea375aaf7a5eaf4.tar.xz drakx-net-bb13d243eaf272ccf63ac57d4ea375aaf7a5eaf4.zip |
rename network::tools::get_internet_connection as network::tools::get_default_connection (will break mdkapplet)
-rwxr-xr-x | bin/net_applet | 2 | ||||
-rw-r--r-- | lib/network/tools.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet index 31f9695..34b391c 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -279,7 +279,7 @@ sub checkWireless() { sub checkNetwork() { my ($gw_intf, $_is_up, $gw_address) = $watched_interface ? ($watched_interface, network::tools::get_interface_status($watched_interface)) : - network::tools::get_internet_connection($net); + network::tools::get_default_connection($net); go2State($gw_address ? 'connected' : $gw_intf ? 'disconnected' : 'unconfigured', $gw_intf); } sub checkNetworkForce() { diff --git a/lib/network/tools.pm b/lib/network/tools.pm index 840834a..1d4df88 100644 --- a/lib/network/tools.pm +++ b/lib/network/tools.pm @@ -193,7 +193,7 @@ sub get_interface_status { } #- returns (gateway_interface, interface is up, gateway address, dns server address) -sub get_internet_connection { +sub get_default_connection { my ($net, $o_gw_intf) = @_; my $gw_intf = $o_gw_intf || get_default_gateway_interface($net) or return; return $gw_intf, get_interface_status($gw_intf), $net->{resolv}{dnsServer}; |