Fix bug introduced in r356 where wicd would crash upon not finding dhclient.
This commit is contained in:
1 parent
8014a2b16a
commit
72e6bb73de
1 file changed
+3
-1
+3
-1
@@ -296,7 +296,9 @@ class BaseInterface(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
self.dhclient_cmd = self._find_program_path("dhclient")
|
self.dhclient_cmd = self._find_program_path("dhclient")
|
||||||
output = misc.Run(self.dhclient_cmd + " --version", include_stderr=True)
|
if self.dhclient_cmd != None:
|
||||||
|
output = misc.Run(self.dhclient_cmd + " --version",
|
||||||
|
include_stderr=True)
|
||||||
if '4.' in output:
|
if '4.' in output:
|
||||||
self.dhclient_needs_verbose = True
|
self.dhclient_needs_verbose = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user