* Set the right PATH for dhclient.
svn path=/nixos/trunk/; revision=7925
This commit is contained in:
parent
66a9cfbcdc
commit
ef8e5716cb
1 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,8 @@ stop on network-interfaces/stop
|
|||
env PATH_DHCLIENT_SCRIPT=${dhcp}/sbin/dhclient-script
|
||||
|
||||
script
|
||||
export PATH=${nettools}/sbin:$PATH
|
||||
|
||||
# Determine the interface on which to start dhclient.
|
||||
interfaces=
|
||||
|
||||
|
@ -25,7 +27,7 @@ script
|
|||
# fi
|
||||
#done
|
||||
|
||||
for i in $(${nettools}/sbin/ifconfig | grep '^[^ ]' | sed 's/ .*//'); do
|
||||
for i in $(ifconfig | grep '^[^ ]' | sed 's/ .*//'); do
|
||||
if test \"$i\" != \"lo\"; then
|
||||
interfaces=\"$interfaces $i\"
|
||||
fi
|
||||
|
@ -38,7 +40,7 @@ script
|
|||
|
||||
mkdir -m 755 -p /var/state/dhcp
|
||||
|
||||
exec ${dhcp}/sbin/dhclient -d $interfaces
|
||||
exec ${dhcp}/sbin/dhclient -d $interfaces -e \"PATH=$PATH\"
|
||||
end script
|
||||
";
|
||||
|
||||
|
|
Loading…
Reference in a new issue