From owner-freebsd-current@FreeBSD.ORG Fri Jun 9 08:46:59 2006 Return-Path: X-Original-To: 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 8CBAB16A418 for ; Fri, 9 Jun 2006 08:46:59 +0000 (UTC) (envelope-from jb@what-creek.com) Received: from what-creek.com (what-creek.com [66.111.37.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 516F843D70 for ; Fri, 9 Jun 2006 08:46:59 +0000 (GMT) (envelope-from jb@what-creek.com) Received: by what-creek.com (Postfix, from userid 102) id 1BD0678C1D; Fri, 9 Jun 2006 08:46:57 +0000 (GMT) Date: Fri, 9 Jun 2006 08:46:57 +0000 From: John Birrell To: current@freebsd.org Message-ID: <20060609084656.GA43591@what-creek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: 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: Fri, 09 Jun 2006 08:46:59 -0000 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