Date: Thu, 28 Oct 2004 22:26:43 +0200 From: Oliver Lehmann <lehmann@ans-netz.de> To: "Poul-Henning Kamp" <phk@phk.freebsd.dk> Cc: roth@iam.unibe.ch Subject: Re: dhclient trashes my resolv.conf Message-ID: <20041028222643.515cfe5d.lehmann@ans-netz.de> In-Reply-To: <2231.1098990944@critter.freebsd.dk> References: <20041028191324.GA18914@speedy.unibe.ch> <2231.1098990944@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > The workaround I use: > > chflags noschg /etc/resolv.conf > _no_schg? I thought setting schg would be a good idea, (but an ugly hack too ;), but regarding to: ( rm -f /etc/resolv.conf ) exit_status=$? fi if [ $exit_status -ne 0 ]; then $LOGGER "WARNING: Unable to update resolv.conf: Error $exit_status" It should log some warnings... because rm -f exits with $? != 0 in case of "operation not permitted" because of schg -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041028222643.515cfe5d.lehmann>