From owner-cvs-etc Tue Jun 24 21:37:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA29912 for cvs-etc-outgoing; Tue, 24 Jun 1997 21:37:56 -0700 (PDT) Received: from burka.rdy.com (dima@burka.rdy.com [205.149.163.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA29904; Tue, 24 Jun 1997 21:37:48 -0700 (PDT) Received: by burka.rdy.com id VAA15429; (8.8.5/RDY) Tue, 24 Jun 1997 21:37:11 -0700 (PDT) Message-Id: <199706250437.VAA15429@burka.rdy.com> Subject: Re: cvs commit: src/etc rc In-Reply-To: <199706250417.NAA04993@bourbon.sfc.wide.ad.jp> from =?us-ascii?Q?Masafumi_NAKANE=2F=3D=3FISO=2D2022=2DJP=3FB=3FGy?= =?us-ascii?Q?RCQ2Y6LDJtSjgbKEI=3D=3F=3D?= at "Jun 25, 97 01:17:55 pm" To: max@wide.ad.jp (Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?=) Date: Tue, 24 Jun 1997 21:37:11 -0700 (PDT) Cc: dima@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-etc@FreeBSD.ORG, max@wide.ad.jp X-Class: Fast Organization: HackerDome Reply-To: dima@best.net From: dima@best.net (Dima Ruban) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-etc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Masafumi NAKANE/=?ISO-2022-JP?B?GyRCQ2Y6LDJtSjgbKEI=?= writes: > > dima 1997/06/24 20:12:13 PDT > > Modified files: > > etc rc > > Log: > > sh /etc/rc.local -> . /etc/rc.local > > > Revision Changes Path > > 1.130 +2 -2 src/etc/rc > > What's the advantage of the latter form over the former one? I can > only see disadvantage. The advantage is: now variables from /etc/rc.conf{,.local} will be propagated to /etc/rc.local > What if rc.local exists but doesn't have execution bit set? Of course > you can change the test for rc.local to -x from -f. (If we keep this > sh /etc/rc.local -> ./etc/rc.local change, we at least need to make > this change to the test for rc.local, I believe.) But if you are not > careful enough, there are good possibility that you think rc.local > gets executed if it's present. Ohh? Here's entry from /etc/rc for /etc/rc.conf: # If there is a global system configuration file, suck it in. if [ -f /etc/rc.conf ]; then . /etc/rc.conf fi Here are primissions on rc.conf: [sivka]-p9:80> ls -la /etc/rc.conf -rw-r--r-- 1 root wheel 6221 5 MAJ 17:46 /etc/rc.conf [sivka]-p9:81> Are you trying to tell me that rc.conf is not executed on the system startup on my machine? :-) > > Cheers, > Max > -- dima