svn path=/nixos/trunk/; revision=7928
This commit is contained in:
Eelco Dolstra 2007-02-20 15:14:48 +00:00
parent eeee6ea1e2
commit 454716ef4f
1 changed files with 6 additions and 2 deletions

View File

@ -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