* Typo.
svn path=/nixos/trunk/; revision=7928
This commit is contained in:
parent
eeee6ea1e2
commit
454716ef4f
@ -35,7 +35,7 @@ start script
|
|||||||
for ((n = 0; n < \${#names[*]}; n++)); do
|
for ((n = 0; n < \${#names[*]}; n++)); do
|
||||||
name=\${names[$n]}
|
name=\${names[$n]}
|
||||||
ipAddress=\${ipAddresses[$n]}
|
ipAddress=\${ipAddresses[$n]}
|
||||||
echo \"Configuring interface $i...\"
|
echo \"Configuring interface $name...\"
|
||||||
${nettools}/sbin/ifconfig \"$name\" up \"$ipAddress\" || true
|
${nettools}/sbin/ifconfig \"$name\" up \"$ipAddress\" || true
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -52,6 +52,10 @@ start script
|
|||||||
${nettools}/sbin/route add default gw \"${defaultGateway}\" || true
|
${nettools}/sbin/route add default gw \"${defaultGateway}\" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Restart dhclient.
|
||||||
|
#initctl stop dhclient || true
|
||||||
|
#initctl start dhclient || true
|
||||||
|
|
||||||
end script
|
end script
|
||||||
|
|
||||||
# Hack: Upstart doesn't yet support what we want: a service that
|
# Hack: Upstart doesn't yet support what we want: a service that
|
||||||
|
Loading…
Reference in New Issue
Block a user