Re: dhclient trashes my resolv.conf

From: Oliver Lehmann <lehmann_at_ans-netz.de>
Date: Thu, 28 Oct 2004 22:26:43 +0200
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/
Received on Thu Oct 28 2004 - 18:26:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:20 UTC