Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2002 11:31:47 -0700 (PDT)
From:      Doug Barton <DougB@FreeBSD.org>
To:        Sheldon Hearn <sheldonh@starjuice.net>
Cc:        current@FreeBSD.org, <dirkx@covalent.net>
Subject:   Re: mini-Head's up: rc.syscons now test for /dev/ttyv0 
Message-ID:  <20020617113024.L3858-100000@master.gorean.org>
In-Reply-To: <62136.1024329444@axl.seasidesoftware.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020617113024.L3858-100000>