On Tuesday 20 October 2009 04:58, Christopher Barry wrote:
> This question is specific to udhcpc, hopefully this is the right place
> to pose it.
> 
> I'm defining an option in ISC dhcpd to send a non-standard server IP to
> clients. I'm planning on using -O to have the client ask for it.
> 
> Will this option appear as a variable in my environment as the name of
> the option I define?

Looking at the code, no, it won't. Only those in dhcp_option_strings[]
will.

BTW, any "-O option" is also checked against dhcp_option_strings[]
and won't be accepted if it is not found there. You can't request
options which udhcpc doesn't know. Understandably, because udhcpc
needs to know their *format* - is it an IP? String? Integer?
Pair of IPs? etc.

> Assuming so, will this variable be in the environment of the script that
> fires off udhcpc, or will it be available in a script run by an event?

I don't understand this question. There is only one script which
is run by udhcpc, the question assumes there are two kinds of scripts.

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to