From 454716ef4f213a918299beb46928f4797ee94a9c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Feb 2007 15:14:48 +0000 Subject: [PATCH] * Typo. svn path=/nixos/trunk/; revision=7928 --- upstart-jobs/network-interfaces.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/upstart-jobs/network-interfaces.nix b/upstart-jobs/network-interfaces.nix index 350bd6f6c90..161ba506882 100644 --- a/upstart-jobs/network-interfaces.nix +++ b/upstart-jobs/network-interfaces.nix @@ -31,11 +31,11 @@ start script # Configure the manually specified interfaces. names=(${toString names}) ipAddresses=(${toString ipAddresses}) - + for ((n = 0; n < \${#names[*]}; n++)); do name=\${names[$n]} ipAddress=\${ipAddresses[$n]} - echo \"Configuring interface $i...\" + echo \"Configuring interface $name...\" ${nettools}/sbin/ifconfig \"$name\" up \"$ipAddress\" || true done @@ -52,6 +52,10 @@ start script ${nettools}/sbin/route add default gw \"${defaultGateway}\" || true fi + # Restart dhclient. + #initctl stop dhclient || true + #initctl start dhclient || true + end script # Hack: Upstart doesn't yet support what we want: a service that