FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 05-06-2010, 03:01 PM
David Cantrell
 
Default Don't ask if we have ESSID specified by kickstart or stage 1 (#473803)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Fri, 30 Apr 2010, Radek Vykydal wrote:


---
gui.py | 2 ++
network.py | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gui.py b/gui.py
index 50c542f..f7ee82f 100755
--- a/gui.py
+++ b/gui.py
@@ -993,6 +993,8 @@ class InstallInterface(InstallInterfaceBase):
# get available wireless APs
dev_all_ssids = self.anaconda.network.getSSIDs()
w.pop()
+ # prefer APs we already have set e.g. via kickstart or stage 1
+ self.anaconda.network.selectPreferredSSIDs(dev_all _ssids)
# select wireless APs
dev_ssids = selectSSIDsDialog(dev_all_ssids) or dev_all_ssids
self.anaconda.network.updateIfcfgsSSID(dev_ssids)
diff --git a/network.py b/network.py
index 9ad9338..9e46f00 100644
--- a/network.py
+++ b/network.py
@@ -507,6 +507,12 @@ class Network:
def getSSIDs(self):
return getSSIDs(self.netdevices.keys())

+ def selectPreferredSSIDs(self, dev_ssids):
+ for iface, device in self.netdevices.items():
+ preferred = device.get('ESSID')
+ if preferred and preferred in dev_ssids[iface]:
+ dev_ssids[iface] = [preferred]
+
def writeKS(self, f):
devNames = self.netdevices.keys()
devNames.sort()



- --
David Cantrell <dcantrell@redhat.com>

Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvi2cMACgkQ5hsjjIy1VkmbQwCg3pZ1/ndRntffOH7OdHvh1kYD
Su0AoJyY5QeZ13FWZGhREhX4weWAc7dR
=ODe+
-----END PGP SIGNATURE-----

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

Thread Tools




All times are GMT. The time now is 04:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org