mirror of
https://github.com/gryf/wicd.git
synced 2026-03-05 08:15:46 +01:00
Use 'dhcpcd' also in Debian, so that defaults in /etc/default/dhcpcd are still observed.
This commit is contained in:
@@ -292,7 +292,7 @@ class BaseInterface(object):
|
|||||||
'id' : misc.PUMP,
|
'id' : misc.PUMP,
|
||||||
},
|
},
|
||||||
"dhcpcd" :
|
"dhcpcd" :
|
||||||
{'connect' : r"%(cmd)s %(iface)s -h %(hostname)s --noipv4ll ",
|
{'connect' : r"%(cmd)s -h %(hostname)s --noipv4ll %(iface)s ",
|
||||||
'release' : r"%(cmd)s -k %(iface)s",
|
'release' : r"%(cmd)s -k %(iface)s",
|
||||||
'id' : misc.DHCPCD,
|
'id' : misc.DHCPCD,
|
||||||
},
|
},
|
||||||
@@ -385,11 +385,7 @@ class BaseInterface(object):
|
|||||||
self.dhclient_needs_verbose = True
|
self.dhclient_needs_verbose = True
|
||||||
else:
|
else:
|
||||||
self.dhclient_needs_verbose = False
|
self.dhclient_needs_verbose = False
|
||||||
debian_dhcpcd_cmd = self._find_program_path('dhcpcd-bin')
|
self.dhcpcd_cmd = self._find_program_path("dhcpcd")
|
||||||
if debian_dhcpcd_cmd:
|
|
||||||
self.dhcpcd_cmd = debian_dhcpcd_cmd
|
|
||||||
else:
|
|
||||||
self.dhcpcd_cmd = self._find_program_path("dhcpcd")
|
|
||||||
self.pump_cmd = self._find_program_path("pump")
|
self.pump_cmd = self._find_program_path("pump")
|
||||||
self.udhcpc_cmd = self._find_program_path("udhcpc")
|
self.udhcpc_cmd = self._find_program_path("udhcpc")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user