From owner-freebsd-current@FreeBSD.ORG Sun Jun 11 11:32:54 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6E1716A41A for ; Sun, 11 Jun 2006 11:32:54 +0000 (UTC) (envelope-from tarc@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (tarc.po.cs.msu.su [158.250.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 267CC43D49 for ; Sun, 11 Jun 2006 11:32:53 +0000 (GMT) (envelope-from tarc@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (localhost [127.0.0.1]) by tarc.po.cs.msu.su (8.13.4/8.13.4) with ESMTP id k5BBYu6c027931 for ; Sun, 11 Jun 2006 15:34:56 +0400 (MSD) (envelope-from tarc@tarc.po.cs.msu.su) Received: (from tarc@localhost) by tarc.po.cs.msu.su (8.13.4/8.13.4/Submit) id k5BBYuAI027928 for freebsd-current@freebsd.org; Sun, 11 Jun 2006 15:34:56 +0400 (MSD) (envelope-from tarc) Resent-From: Tarc Resent-Date: Sun, 11 Jun 2006 15:34:56 +0400 Resent-Message-ID: <20060611113456.GB24170@tarc.po.cs.msu.su> Resent-To: freebsd-current Date: Fri, 9 Jun 2006 15:41:40 +0400 From: Tarc To: freebsd-current Message-ID: <20060609114140.GC56421@tarc.po.cs.msu.su> References: <20060609084656.GA43591@what-creek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060609084656.GA43591@what-creek.com> User-Agent: mutt-ng/devel-r581 (FreeBSD) Subject: Re: Loader forth 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: Sun, 11 Jun 2006 11:32:54 -0000 On Fri, Jun 09, 2006 at 08:46:57AM +0000, John Birrell wrote: > Gobbldy-gook! Yuk. I need help. > > All I want to do is add another menu option that will do > the equivalent of: > > cyclic_load="YES" > dtrace_load="YES" > > etc > > and then boot. > > Adding the menu option was simple. > > But it seems that the loader code does the module loading *before* > the menu is displayed and simply doing the setenvs when the key > press is detected is too late -- they get ignored. > > Doing the setenv and then a boot-conf resets everything to what was > read from the config files. Grumble. > > I see that the acpi implementation cheats and that module gets > loaded from the C-code. Is that because the design of the loader forth > doesn't allow this? > > This is probably really simple for a forth programmer. Which I'm not. > > Can anyone tell me how to do it? > > -- > John Birrell Yes, but you can use the load command for loading custom modules and/or kernel. for documentation, you can see to /sys/boot/common/help.common . There are described some commands. T-prefix and D-prefix are for format only, so you should find `# Tload' pattern. -- Best regards, Arseny Nasokin