David W. Hankins David_Hankins at isc.org
Wed Dec 17 20:07:07 UTC 2008

On Wed, Dec 17, 2008 at 09:33:55AM -0600, Jolynn Schmidt wrote:
> #!/bin/bash
> echo test  >> /etc/sysconfig/info.conf
> if [ -n "${DHCP_SERVER}" ]; then
>         echo "dhcpsid=${DHCP_SERVER}" >> /etc/sysconfig/info.conf
> fi
> if [ -n "${DHCPSID}" ]; then
>         echo "DHCPSID=${DHCPSID}" >> /etc/sysconfig/info.conf
> fi

The best debugging tool to find the right environment variables is;

    export > /tmp/dhclient.variables.txt

This shows you all the stuff you have to choose from.

What you're looking for probably is '${NEW_DHCP_SERVER_IDENTIFIER}".

NEW_ and OLD_ are prefixed to new and old configuration state, so that
the contents can be compared, and the config is only updated only when
it changes.

Ash bugud-gul durbatuluk agh burzum-ishi krimpatul.
Why settle for the lesser evil?	 https://secure.isc.org/store/t-shirt/
David W. Hankins	"If you don't do it right the first time,
Software Engineer		     you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20081217/f8ca810d/attachment.bin>

More information about the dhcp-users mailing list