Re: [PATCH] Set wireless devices as NM_CONTROLLED by default (#594881)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

On Tue, 15 Jun 2010, Radek Vykydal wrote:

---
network.py |    7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/network.py b/network.py
index 8b0d109..7c664bf 100644
--- a/network.py
+++ b/network.py
@@ -316,6 +316,8 @@ class Network:
        self.overrideDHCPhostname = False

        self.update()
+        # We want wireless devices to be nm controlled by default
+        self.controlWireless()

    def update(self):

@@ -441,6 +443,11 @@ class Network:
                ifaces.append(iface)
        return ifaces

+    def controlWireless(self):
+        for devname, device in self.netdevices.items():
+            if isys.isWireless(devname):
+                device.set(('NM_CONTROLLED', 'yes'))
+
    def writeKS(self, f):
        devNames = self.netdevices.keys()
        devNames.sort()


--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux