Re: Updating /etc/hosts automatically / behavior of sed command
On Fri, Jul 05, 2013 at 10:14:54AM +0200, Thomas Hood wrote:
> Tad Frank wrote:
> > Your issue lies in the line: sed -e "s/$REGISTERED_IP/$CURRENT_IP/g" /etc/hosts > /etc/hosts.new
>
> I searched debian-devel for the message to which you are responding;
> the most recent message with that subject header dates from December 1999.
>
> Yes, people were dynamically updating /etc/hosts in 1999 but I hope that
> no one has to do that any longer. :)
> --
> Thomas Hood
>
And policy allows for /etc to be read-only so the code would be a
policy violation.
MfG
Goswin
Reply to: