From owner-cvs-all Mon Sep 24 10:38: 4 2001 Delivered-To: cvs-all@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id EE18637B409; Mon, 24 Sep 2001 10:37:56 -0700 (PDT) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id f8OHbib44762; Mon, 24 Sep 2001 10:37:44 -0700 (PDT) (envelope-from obrien) Date: Mon, 24 Sep 2001 10:37:44 -0700 From: "David O'Brien" To: Andrea Campi Cc: Hajimu UMEMOTO , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/etc rc Message-ID: <20010924103744.A44734@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <200109240303.f8O33qB64939@freefall.freebsd.org> <20010924175857.A21878@webcom.it> <20010925.015110.21914758.ume@mahoroba.org> <20010924192019.A22181@webcom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010924192019.A22181@webcom.it>; from andrea@webcom.it on Mon, Sep 24, 2001 at 07:20:19PM +0200 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I am not opposing this patch, just asking for the reasoning behind it, > warning that it may break POLA, and asking for at least an UPDATING > entry and/or no MFC. For me it was a POLA that after I did ``vi /usr/local/etc/rc.d/foo.sh'' the script barfed with "Bad interpreter" on the next reboot. It took me a while to realize what in the world was wrong. /etc/rc uses `sh' to run ${diskless_mount}, /etc/rc.devfs, and /etc/rc.local (which /usr/local/etc/rc.d/ is the 2nd generation of). Also note that explicitly /usr/local/etc/rc.d/*.sh is run, not `*', but `*.sh'. This is so that you can move scripts out of the way. The fact that `chmod -x' worked, was just an unforeseen side affect. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message