1
0
mirror of https://github.com/gryf/wicd.git synced 2026-04-16 10:43:35 +02:00

Use 'dhcpcd' also in Debian, so that defaults in /etc/default/dhcpcd are still observed.

This commit is contained in:
David Paleino
2011-02-06 18:33:59 +01:00
parent 7b263b4666
commit 0852817ca3

View File

@@ -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,10 +385,6 @@ 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')
if debian_dhcpcd_cmd:
self.dhcpcd_cmd = debian_dhcpcd_cmd
else:
self.dhcpcd_cmd = self._find_program_path("dhcpcd") 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")