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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user