From owner-freebsd-hackers Fri Apr 11 10:58:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA06793 for hackers-outgoing; Fri, 11 Apr 1997 10:58:50 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA06784 for ; Fri, 11 Apr 1997 10:58:47 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id TAA19618; Fri, 11 Apr 1997 19:08:25 +0200 From: Luigi Rizzo Message-Id: <199704111708.TAA19618@labinfo.iet.unipi.it> Subject: Re: on the subject of changes to -RELEASEs... To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Fri, 11 Apr 1997 19:08:25 +0200 (MET DST) Cc: jmb@freefall.freebsd.org, imp@village.org, hackers@freebsd.org In-Reply-To: <1928.860777443@time.cdrom.com> from "Jordan K. Hubbard" at Apr 11, 97 09:50:24 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > how about creating HERE documents *inside* sysconfig which create > > /etc/resolv.conf, /etc/hosts, /etc/namedb.boot, ...... > > So they'd be regenerated each time you booted up? > > Hmmmm. That's not such a terrible idea, actually, just so long as the > here documents were wrapped around: > > if [ -w /etc/targetfile ]; then > .. here document which writes on it ... > fi > > So that you could handle the read-only-root case. I kinda like it! > What do others thing? see my other posting on the subject. It has some value, expecially for small files such as resolv.conf, host.conf , hosts, ... but when it comes to large or binary files you are screwed. Besides, you can burn yourself with this feature when you make a change to the /etc/xxx file and forget to disable writing to it... Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________