From owner-freebsd-stable@FreeBSD.ORG Wed Nov 2 07:43:35 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7EE016A420 for ; Wed, 2 Nov 2005 07:43:35 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from web36202.mail.mud.yahoo.com (web36202.mail.mud.yahoo.com [209.191.68.228]) by mx1.FreeBSD.org (Postfix) with SMTP id 6629F43D58 for ; Wed, 2 Nov 2005 07:43:30 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 50147 invoked by uid 60001); 2 Nov 2005 07:43:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gfik0ZYCtbwkuOjahwcPvHdhmb4LkCB/AuSKAPHWnx2caiQYY4QQr9zgD74A1Myi2PkS0fuRB2dBz54jCs8tsFiLipe2IzU7c6epa0m1FUoPehCQuDZChWaNn4RgCfX8K7mydP1MweZdCQ6SMFmI8h727AfjJecARvDBKkvbvas= ; Message-ID: <20051102074329.50145.qmail@web36202.mail.mud.yahoo.com> Received: from [147.46.44.181] by web36202.mail.mud.yahoo.com via HTTP; Tue, 01 Nov 2005 23:43:29 PST Date: Tue, 1 Nov 2005 23:43:29 -0800 (PST) From: Rob To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Kris Kennaway Subject: Re: GENERIC and DEFAULTS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 07:43:35 -0000 Kris Kennaway wrote: > > You've clearly never spent much time on the FreeBSD > support forums, where every few days someone posts > for help > > 1) with an error caused by removing one of those > "Do not remove this!" lines, and > > 2) for help on getting X working when they forgot > to add /dev/io and /dev/mem to their kernel. I believe *BSD can offer a better solution for such issues. For example, when having firewall_enable="YES", then /etc/rc.d/ipfw does: if ! ${SYSCTL} net.inet.ip.fw.enable; then if ! kldload ipfw; then warn unable to load firewall module. return 1 fi fi So if ipfw is not supported by the kernel, this script will automagically load the ipfw module, or issue a warning what is missing. (Similarly, but not yet implemented, /etc/rc.d/sshd should automagically load the random module, if not in the kernel). My point is then to follow this strategy also for X: instead of a DEFAULTS file, have a /etc/rc.d/xdm script, which starts X and loads the modules io/mem if needed. Rob. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com