mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 12:58:07 +01:00
Added support for two more DHCP clients: pump and dhcpcd.
Added check when DHCP is run to determine what DHCP clients are available. Fixed bug where sometimes wicd wouldn't reconnect automatically when a wired connection was lost. Cleaned up a couple of comments.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
""" wicd - wireless connection daemon implementation.
|
||||
|
||||
This module implements the wicd daemon that provides network
|
||||
@@ -463,7 +464,6 @@ class ConnectionWizard(dbus.service.Object):
|
||||
|
||||
"""
|
||||
self.forced_disconnect = bool(value)
|
||||
#end function SetForcedDisconnect
|
||||
|
||||
@dbus.service.method('org.wicd.daemon')
|
||||
def GetGUIOpen(self):
|
||||
@@ -830,6 +830,7 @@ class ConnectionWizard(dbus.service.Object):
|
||||
@dbus.service.method('org.wicd.daemon.wired')
|
||||
def ConnectWired(self):
|
||||
"""connects to a wired network. """
|
||||
self.SetForcedDisconnect(False)
|
||||
self.wired.before_script = self.GetWiredProperty("beforescript")
|
||||
self.wired.after_script = self.GetWiredProperty("afterscript")
|
||||
self.wired.disconnect_script = self.GetWiredProperty("disconnectscript")
|
||||
|
||||
Reference in New Issue
Block a user