mirror of
https://github.com/gryf/wicd.git
synced 2026-02-20 00:45:46 +01:00
Fix bug that was keeping DHCP release from working.
This commit is contained in:
@@ -476,7 +476,8 @@ class BaseInterface(object):
|
|||||||
def ReleaseDHCP(self):
|
def ReleaseDHCP(self):
|
||||||
""" Release the DHCP lease for this interface. """
|
""" Release the DHCP lease for this interface. """
|
||||||
if not self.iface: return False
|
if not self.iface: return False
|
||||||
cmd = self.DHCP_RELEASE + " " + self.iface + " 2>/dev/null"
|
cmd = self.DHCP_RELEASE + " " + self.iface
|
||||||
|
if self.verbose: print cmd
|
||||||
misc.Run(cmd)
|
misc.Run(cmd)
|
||||||
|
|
||||||
def FlushRoutes(self):
|
def FlushRoutes(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user