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