summaryrefslogtreecommitdiffstats
path: root/lib/network/connection.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-18 19:12:07 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-18 19:12:07 +0000
commit98b351b053aaec48a022114b594fdac1caaaf481 (patch)
treebb5801286f234be3916bd9a8f5deb88d35a6d0a6 /lib/network/connection.pm
parent477d72b82b096976fb473326d700a33ffb12703d (diff)
downloaddrakx-net-98b351b053aaec48a022114b594fdac1caaaf481.tar
drakx-net-98b351b053aaec48a022114b594fdac1caaaf481.tar.gz
drakx-net-98b351b053aaec48a022114b594fdac1caaaf481.tar.bz2
drakx-net-98b351b053aaec48a022114b594fdac1caaaf481.tar.xz
drakx-net-98b351b053aaec48a022114b594fdac1caaaf481.zip
add network::connection::get_networks (so that we can know if a networks probe has already been performed)
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r--lib/network/connection.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 6415282..f397f08 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -231,6 +231,12 @@ sub write_settings {
network::network::reload_net_applet();
}
+sub get_networks {
+ my ($self) = @_;
+ $self->{probed_networks} = 1;
+ $self->{networks};
+}
+
sub connect {
my ($self) = @_;
require network::tools;