From ef8e5716cb77dbc61d313924d3cd318addd24e6c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Feb 2007 14:59:29 +0000 Subject: [PATCH] * Set the right PATH for dhclient. svn path=/nixos/trunk/; revision=7925 --- upstart-jobs/dhclient.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/upstart-jobs/dhclient.nix b/upstart-jobs/dhclient.nix index f4d4ab17cc6d..dd3a41e2ef8d 100644 --- a/upstart-jobs/dhclient.nix +++ b/upstart-jobs/dhclient.nix @@ -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 ";