dhclient trashes my resolv.conf
Oliver Lehmann
lehmann at ans-netz.de
Thu Oct 28 13:26:15 PDT 2004
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/
More information about the freebsd-current
mailing list