From owner-freebsd-current@FreeBSD.ORG Mon Jun 13 17:00:07 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11D85106566B; Mon, 13 Jun 2011 17:00:06 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9B76C8FC1B; Mon, 13 Jun 2011 17:00:06 +0000 (UTC) Received: by iwn33 with SMTP id 33so5843172iwn.13 for ; Mon, 13 Jun 2011 10:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QsDq7JhGzBNVwJ3xucFdABoCRYJ3L7Pkioo4uA8E6xc=; b=o8JytCXmgpDzMiH46mkcIQByQv55PixDSmlqHiyt1GIFiJP5STuABlwQa/IBDth+Xe 4ufzVe2rYuUiCow6oD9mK1XxPmn00DlPhD5jDFzkGZw04di3r2g/ZKRjv8YNCyVpCfhk JJStteWtRGS1oBjdlCRHWq7BWcXEXng289WWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FgROPzPOqD0NfcXNGrRr+mUUh0wJgoB1hZVrkAXqoc+Xl9xgd60FLVV/tb9UvSVwPh fXtUHArXkMjnNNp9+v8LDsbwSu9xpiHcBLXMcd67JL+mehTnoCk66gsAmeVDkAi6fpfH GCX83cxOUzfepCH+YafTQEVcxTjBKk+4mvvWI= MIME-Version: 1.0 Received: by 10.42.132.70 with SMTP id c6mr1691282ict.349.1307984404835; Mon, 13 Jun 2011 10:00:04 -0700 (PDT) Received: by 10.231.174.70 with HTTP; Mon, 13 Jun 2011 10:00:04 -0700 (PDT) Received: by 10.231.174.70 with HTTP; Mon, 13 Jun 2011 10:00:04 -0700 (PDT) In-Reply-To: <4DF63972.8070006@freebsd.org> References: <4DF3E98B.40108@FreeBSD.org> <20110612085649.GA11503@DataIX.net> <4DF50AA1.9080607@FreeBSD.org> <4DF63972.8070006@freebsd.org> Date: Mon, 13 Jun 2011 18:00:04 +0100 Message-ID: From: Chris Rees To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org, Doug Barton Subject: Re: rc.d script to load kernel modules X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2011 17:00:07 -0000 On 13 Jun 2011 17:24, "Julian Elischer" wrote: > > On 6/12/11 11:20 PM, Daniel Braniss wrote: >>> >>> On 6/12/2011 1:56 AM, Jason Hellenthal wrote: >>> >>>> Cutting modules out of the kernel in general does help speed up booting >>>> but loading those same modules later in the boot process will just lead >>>> you back to the same boot time. >>> >>> Loading modules via loader.conf is many times slower than doing it from >>> disk after the system is partially booted. (As in, 2-3 seconds per >>> module vs. nearly instantaneous for all 6.) >>> >>> I didn't offer my list as an example of what to do, I offered it as a >>> syntax example. I would of course expect people to use appropriate >>> discretion to load things in loader.conf that are necessary for boot. >>> (Of course, the fact that people can easily get this wrong is a strike >>> against the technique.) >>> >>> There is no point in having an _enable for this script because if the >>> kld_list is empty, nothing happens. >>> >> Doug's solution is what we have been using for a very long time! >> >> the loader.conf solution is not practical when it's shared among many >> hosts -like here where most of the hosts are dataless-, so, moving the not >> essential ones to rc.conf was the obvious solution. > > > what would be REALLY cool would be the ability to make loader.conf have some sort of conditional > clauses.. > > e.g. if MAC== 01:02:03:04:05:06 > blah > > Isn't it just a shell script?