Commit c03b02d7 authored by Robert Ricci's avatar Robert Ricci
Browse files

Now shuts down dhclient after it gets an IP address. Really, this

should be a dhclient option, but dhclient doesn't seem to have it.

This saves network traffic, but the primary reason for doing it is
that if users try to change information that dhclient sets (such as
hostname), dhclient periodially clobbers their changes when it
renews the lease.
parent b2759101
...@@ -14,4 +14,14 @@ fi ...@@ -14,4 +14,14 @@ fi
# #
/etc/testbed/sethostname $new_domain_name /etc/testbed/sethostname $new_domain_name
# Once we have an IP address, we can stop dhclient so that it doesn't get
# in the way
if [ x"$reason" = xREBOOT ]; then
# I'd love to use the file, but it helpfully has not been
# created at this point
killall dhclient
exit 0 exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment