From 4679eaf01dbd8de821a6b5e4744f96ffc4eb9e09 Mon Sep 17 00:00:00 2001
From: Olivier Blin <oblin@mandriva.com>
Date: Fri, 14 Mar 2008 17:21:52 +0000
Subject: add apply_network_selection

---
 lib/network/connection/wireless.pm | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'lib')

diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index e3a1929..7f59041 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -590,6 +590,13 @@ sub write_settings {
     $self->SUPER::write_settings($o_net, $o_modules_conf);
 }
 
+sub apply_network_selection {
+    my ($self) = @_;
+    require network::network;
+    my $file = network::network::get_ifcfg_file($self->get_interface);
+    network::network::write_interface_settings($self->build_ifcfg_settings, $file);
+}
+
 sub network_is_configured {
     my ($self, $network) = @_;
     if ($self->{control}{roaming}) {
-- 
cgit v1.2.1