Make dhclient work again
svn path=/nixpkgs/trunk/; revision=16517
This commit is contained in:
parent
0b46ac126b
commit
b0e71363d1
1 changed files with 6 additions and 1 deletions
|
@ -21,9 +21,14 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace $out/sbin/dhclient-script \
|
||||
--replace /sbin/ip ${iproute}/sbin/ip
|
||||
wrapProgram "$out/sbin/dhclient-script" --prefix PATH : \
|
||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin"
|
||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin:${stdenv.coreutils}/bin:${stdenv.gnused}/bin"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
sed -i "includes/dhcpd.h" \
|
||||
-"es|^ *#define \+_PATH_DHCLIENT_SCRIPT.*$|#define _PATH_DHCLIENT_SCRIPT \"$out/sbin/dhclient-script\"|g"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Dynamic Host Configuration Protocol (DHCP) tools";
|
||||
|
||||
|
|
Loading…
Reference in a new issue