1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Couple of fixes, started integrating a feature that will allow Wicd to smartly detect wired networks, by using detected wireless networks and connected USB devices

This commit is contained in:
compwiz18
2008-03-21 03:38:57 +00:00
parent 98b2547890
commit b5609dc209
3 changed files with 10 additions and 4 deletions

View File

@@ -166,7 +166,7 @@ class ConnectionWizard(dbus.service.Object):
# Scan since we just got started
if auto_connect:
print "autoconnecting...", str(self.GetWirelessInterface()[5:])
print "autoconnecting...", str(self.GetWirelessInterface())
self.AutoConnect(True)
else:
print "--no-scan detected, not autoconnecting..."
@@ -366,6 +366,12 @@ class ConnectionWizard(dbus.service.Object):
def _wired_autoconnect(self):
""" Attempts to autoconnect to a wired network. """
if self.GetWiredAutoConnectMethod() == 3 and \
not self.GetNeedWiredProfileChooser():
# attempt to smartly connect to a wired network
# by using various wireless networks detected
# and by using plugged in USB devices
print self.LastScan
if self.GetWiredAutoConnectMethod() == 2 and \
not self.GetNeedWiredProfileChooser():
self.LaunchChooser()