[PATCH 1/2] Udhcpc: add an option to skip updating resolv.conf
Denys Vlasenko
vda.linux at googlemail.com
Sat Oct 9 10:01:59 UTC 2010
On Friday 08 October 2010 15:23, Lauri Kasanen wrote:
> > Well, if you don't want to update resolv.conf, then
> > don't update it. That is, change -s SCRIPT so that
> > it doesn't do it.
> >
> > --
> > vda
>
> That's true, didn't think of that :p
>
> It's somewhat not as user-friendly as a single option, but I guess it'll work ok.
If you want to use a configurable script, you may use environment variables
to control it (since udhcpc doesn't pass user-defined parameters to it):
export DONT_TOUCH_RESOLV_CONF=1
udhcpc .... -s SCRIPT
and SCRIPT can analyze $DONT_TOUCH_RESOLV_CONF etc
--
vda
More information about the busybox
mailing list