From owner-freebsd-bugs Sun Jun 16 13:16:53 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mobile.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by hub.freebsd.org (Postfix) with ESMTP id 6D36937B43C; Sun, 16 Jun 2002 13:16:49 -0700 (PDT) Received: from localhost.leiden.webweaving.org (localhost.leiden.webweaving.org [127.0.0.1] (may be forged)) by mobile.webweaving.org (8.12.2/8.10.2) with ESMTP id g5GKFnqD026009; Sun, 16 Jun 2002 22:15:49 +0200 (CEST) X-Curiosity: Killed the Cat X-Huis-aan-Huis-deur-sticker: nee-nee X-Spam: no X-Passed: MX on Gandalf.WebWeaving.org Sun, 16 Jun 2002 22:15:49 +0200 (CEST) and masked X-No-Spam: Neither the receipients nor the senders email address(s) are to be used for Unsolicited (Commercial) Email without the explicit written consent of either party; as a per-message fee is incurred for inbound and outbound traffic to the originator. Date: Sun, 16 Jun 2002 22:15:49 +0200 (CEST) From: dirkx@covalent.net X-X-Sender: dirkx@mobile.webweaving.org 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. In-Reply-To: <200206161938.g5GJcOh33554@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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