Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2002 22:15:49 +0200 (CEST)
From:      dirkx@covalent.net
To:        dougb@FreeBSD.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/39351: /etc/rc.syscon is always ran - even if there is no vga.
Message-ID:  <Pine.OSX.4.43.0206162211230.339-100000@mobile.webweaving.org>
In-Reply-To: <200206161938.g5GJcOh33554@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 16 Jun 2002 dougb@FreeBSD.org wrote:

> Everything in rc.syscons is already controlled by a knob, and as

No jokes: no less than 13 nobs.

> was already said, if you don't like having it run, just rm it.

Quite true :-)

However 'rm' is one of the few options which de diskless override does not
directly support (except for overriding it with an empty 0 byte file;
which is what I do now).

The alternative is setting 13 variables 'NO' or null. Which all is a wee
bit over the top; as very early in the script things are hardcoded to
just the syscon; without checking for presense.

	kbddev=/dev/ttyv0
	viddev=/dev/ttyv0

one could tie it to the pressense of a syscon or a single syscon
indicating variable:

	if [ ! -e ${viddev} ]; then
		exit 0
	fi

or a $syscon_enable=YES; the first ties nicely into the new devfs
framework of course.

Dw.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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