Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -14,4 +14,14 @@ fi
#
/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 dhclient.pid file, but it helpfully has not been
# created at this point
killall dhclient
fi
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment