1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 05:18:02 +01:00

Refactored a few daemon methods from bring registered under the 'wireless' service to 'daemon'.

Fixed the wired autoconnect profile chooser, which was badly broken.
Added a check to GetPluggedIn() that makes sure that the wired interface is up before checking.  If it's not, it tries to put it up.  This is necessary because ethtool doesn't make this check for us, as mii-tool did.
This commit is contained in:
imdano
2008-01-22 16:05:30 +00:00
parent c83f18fd65
commit 9bd9605411
5 changed files with 69 additions and 52 deletions

View File

@@ -346,6 +346,7 @@ class Wireless(Controller):
wiface.SetAddress('0.0.0.0')
wiface.Down()
wiface.Up()
class WirelessConnectThread(ConnectThread):
""" A thread class to perform the connection to a wireless network.
@@ -604,6 +605,7 @@ class Wired(Controller):
liface.SetAddress('0.0.0.0')
liface.Down()
liface.Up()
class WiredConnectThread(ConnectThread):