*** From dhcp-client -- To unsubscribe, see the end of this message. ***
If you read the manual page, the dhclient script may make more sense
to you, but it's generally not meant to be hacked, so it is a little
opaque. It doesn't try to set the hostname. If you want it to, add
an /etc/dhclient-enter-hooks shell script with the following code:
if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
[ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then
if [ x$new_host_name != x ] && [ x$new_host_name != x$old_host_name ]; then
hostname $new_host_name
fi
fi
This will set up the hostname whenever a new one comes in. The
advantage of doing this in the hooks is that you don't have to worry
about your next "make install" blowing away your modified
/etc/dhclient-script.
I am pretty sure that this functionality is present on Linux in pl18,
but if not, you may have to upgrade to pl23 to get it.
_MelloN_
------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED] Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------