mirror of
https://github.com/gryf/wicd.git
synced 2026-01-30 12:35:46 +01:00
Experimental/Testing:
- Fix bug keeping wired networks from connecting - Wicd will now try to release dhcp when disconnecting from a network.
This commit is contained in:
@@ -550,6 +550,7 @@ class Wireless(Controller):
|
|||||||
print 'Running wireless network disconnect script'
|
print 'Running wireless network disconnect script'
|
||||||
misc.ExecuteScript(self.disconnect_script)
|
misc.ExecuteScript(self.disconnect_script)
|
||||||
|
|
||||||
|
wiface.ReleaseDHCP()
|
||||||
wiface.SetAddress('0.0.0.0')
|
wiface.SetAddress('0.0.0.0')
|
||||||
wiface.Down()
|
wiface.Down()
|
||||||
wiface.Up()
|
wiface.Up()
|
||||||
@@ -752,7 +753,8 @@ class Wired(Controller):
|
|||||||
self.wireless_interface, self.wired_interface,
|
self.wireless_interface, self.wired_interface,
|
||||||
self.before_script, self.after_script,
|
self.before_script, self.after_script,
|
||||||
self.disconnect_script, self.global_dns_1,
|
self.disconnect_script, self.global_dns_1,
|
||||||
self.global_dns_2, self.global_dns_3, wiface, liface, debug)
|
self.global_dns_2, self.global_dns_3, self.wiface, self.liface,
|
||||||
|
debug)
|
||||||
self.connecting_thread.setDaemon(True)
|
self.connecting_thread.setDaemon(True)
|
||||||
self.connecting_thread.start()
|
self.connecting_thread.start()
|
||||||
return True
|
return True
|
||||||
@@ -773,6 +775,7 @@ class Wired(Controller):
|
|||||||
print 'Running wired disconnect script'
|
print 'Running wired disconnect script'
|
||||||
misc.Run(self.disconnect_script)
|
misc.Run(self.disconnect_script)
|
||||||
|
|
||||||
|
liface.ReleaseDHCP()
|
||||||
liface.SetAddress('0.0.0.0')
|
liface.SetAddress('0.0.0.0')
|
||||||
liface.Down()
|
liface.Down()
|
||||||
liface.Up()
|
liface.Up()
|
||||||
|
|||||||
Reference in New Issue
Block a user