-----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@xxxxxxxxxx>
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@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list