0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

* Set the right PATH for dhclient.

svn path=/nixos/trunk/; revision=7925
This commit is contained in:
Eelco Dolstra 2007-02-20 14:59:29 +00:00
parent 66a9cfbcdc
commit ef8e5716cb

View file

@ -12,6 +12,8 @@ stop on network-interfaces/stop
env PATH_DHCLIENT_SCRIPT=${dhcp}/sbin/dhclient-script env PATH_DHCLIENT_SCRIPT=${dhcp}/sbin/dhclient-script
script script
export PATH=${nettools}/sbin:$PATH
# Determine the interface on which to start dhclient. # Determine the interface on which to start dhclient.
interfaces= interfaces=
@ -25,7 +27,7 @@ script
# fi # fi
#done #done
for i in $(${nettools}/sbin/ifconfig | grep '^[^ ]' | sed 's/ .*//'); do for i in $(ifconfig | grep '^[^ ]' | sed 's/ .*//'); do
if test \"$i\" != \"lo\"; then if test \"$i\" != \"lo\"; then
interfaces=\"$interfaces $i\" interfaces=\"$interfaces $i\"
fi fi
@ -38,7 +40,7 @@ script
mkdir -m 755 -p /var/state/dhcp mkdir -m 755 -p /var/state/dhcp
exec ${dhcp}/sbin/dhclient -d $interfaces exec ${dhcp}/sbin/dhclient -d $interfaces -e \"PATH=$PATH\"
end script end script
"; ";