From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 01:13:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B5FC16A4BF for ; Thu, 28 Aug 2003 01:13:19 -0700 (PDT) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 035C343F85 for ; Thu, 28 Aug 2003 01:13:17 -0700 (PDT) (envelope-from david@landgren.net) Received: from landgren.net (81-80-147-206.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id 929E7A97D for ; Thu, 28 Aug 2003 10:13:16 +0200 (CEST) Message-ID: <3F4DB8A2.8040007@landgren.net> Date: Thu, 28 Aug 2003 10:09:06 +0200 From: David Landgren Organization: A thousand golden eyes are watching User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions List References: <014d01c36d24$1f8c1430$0201a8c0@dredster> In-Reply-To: <014d01c36d24$1f8c1430$0201a8c0@dredster> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Setting sysctl variables BEFORE the kernel boots and runs init? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 08:13:19 -0000 Micheal Patterson wrote: > > ----- Original Message ----- > From: "Donald Burr" > To: "FreeBSD Questions List" > Sent: Wednesday, August 27, 2003 6:11 PM > Subject: Setting sysctl variables BEFORE the kernel boots and runs init? > > > >>I would like to be able to set certain sysctl variables in the kernel, >>preferably BEFORE the kernel finishes booting and runs init, etc. (or >>at the worst case, very shortly after init runs) I thought I >>remembered that there was a way to do this through the boot loader. >>Can anyone enlighten me? Thanks. [...] > You can configure sysctl options if you create the file /etc/sysctl.conf and > put your changes there. Is this what you're looking for? That happens in the late stages if the game. init is running the main rc script, disks have been fscked and mounted, swap is up. It does happen before network setup, IIRC. It depends on what variables the OP is talking about I guess. DAvid