Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2015 07:29:13 +0200
From:      Polytropon <freebsd@edvax.de>
To:        perryh@pluto.rain.com (Perry Hutchison)
Cc:        mueller6724@bellsouth.net, freebsd-questions@freebsd.org
Subject:   Re: disabling dhclient
Message-ID:  <20150831072913.0363f0ce.freebsd@edvax.de>
In-Reply-To: <55e3deee.rst6YFxS1jQ%2BSXFE%perryh@pluto.rain.com>
References:  <55e25852.0Xpg4zY1btmbpx9Z%perryh@pluto.rain.com> <CAHu1Y73vEKyNsjJ=_fBYq7D-d7_qdoGDeJ2TKkC3XzN-3sWGUQ@mail.gmail.com> <CAHu1Y723DFkBBmMG9f5tJb=iAfW4L4dC5EeAX124Vn4yvm3Riw@mail.gmail.com> <55e282fc.s%2BOSZJ/KaD3iwr7U%perryh@pluto.rain.com> <15727.94738.bm@smtp116.sbc.mail.ne1.yahoo.com> <55e3deee.rst6YFxS1jQ%2BSXFE%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 30 Aug 2015 21:58:22 -0700, Perry Hutchison wrote:
> "Thomas Mueller" <mueller6724@bellsouth.net> wrote:
> 
> > There is a line in /etc/defaults/rc.conf 
> >
> > dhclient_program="/sbin/dhclient"       # Path to dhcp client program.
> >
> > Setting dhclient_program="/usr/bin/true" in /etc/rc.conf would
> > avoid the need to hack dhclient itself
> 
> That still seems in the sledgehammer category, since I doubt it's
> the intended use of the knob (which is more likely intended to select
> a different DHCP client, perhaps from a port).  However, it's worth
> a try.
> 
> I suspect /bin/sync may be a better choice than /usr/bin/true,
> since devd can potentially fire up before /usr has been mounted;
> alternatively one could copy /usr/bin/true into /bin or /sbin (but
> then we are back to hacking on the system rather than configuring
> it).

The choice of a "no action substitute" might be a problem
when $dhclient_program is called with command line parameters.
Such a program (or custom script) should accept possible
parameters and ignore them. Of course, "sync" fulfills
this requirement.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150831072913.0363f0ce.freebsd>