From owner-freebsd-current Mon Jun 17 11:34:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from 12-234-90-219.client.attbi.com (12-234-90-219.client.attbi.com [12.234.90.219]) by hub.freebsd.org (Postfix) with ESMTP id AE3C937B416 for ; Mon, 17 Jun 2002 11:34:23 -0700 (PDT) Received: from master.gorean.org (master.gorean.org [10.0.0.2]) by 12-234-90-219.client.attbi.com (8.12.3/8.12.3) with ESMTP id g5HIVmBu008933; Mon, 17 Jun 2002 11:31:48 -0700 (PDT) (envelope-from DougB@FreeBSD.org) Received: from localhost (doug@localhost) by master.gorean.org (8.12.4/8.12.4/Submit) with ESMTP id g5HIVlI1003869; Mon, 17 Jun 2002 11:31:48 -0700 (PDT) Date: Mon, 17 Jun 2002 11:31:47 -0700 (PDT) From: Doug Barton To: Sheldon Hearn Cc: current@FreeBSD.org, Subject: Re: mini-Head's up: rc.syscons now test for /dev/ttyv0 In-Reply-To: <62136.1024329444@axl.seasidesoftware.co.za> Message-ID: <20020617113024.L3858-100000@master.gorean.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 17 Jun 2002, Sheldon Hearn wrote: > > > On Sun, 16 Jun 2002 14:04:13 MST, Doug Barton wrote: > > > Based on some suggestions by a user, I've added the following to the > > top of rc.syscons: > > > > # Handle diskless boots, and other situations where syscons is not > > present > > # > > if [ ! -c "${kbddev}" ]; then > > exit 0 > > fi > > > > As far as I can tell, this should be safe, but if anyone comes across > > wackiness, please let me know. > > Since this script relies on /usr being mounted already, wouldn't ye olde > "kldstat -v | grep ' scterm-sc$'" provide a more faithful answer? Depends on what question you're asking. :) > I'm not sure how much it actually matters, though. A nonexistent > /dev/ttyv0 seems quite pathalogical to me. Not in a diskless boot situation, which (according to the comment) is the primary reason for this test. Also, the rest of the file is meaningless in the absence of this device anyway, so the test is reasonable. Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message