From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 11 11:55:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5197B16A421 for ; Sun, 11 Feb 2007 11:55:21 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from ferengi.borderworlds.dk (ferengi.borderworlds.dk [80.166.152.7]) by mx1.freebsd.org (Postfix) with ESMTP id 0EECE13C4B2 for ; Sun, 11 Feb 2007 11:55:20 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from dominion.borderworlds.dk (unknown [10.1.0.10]) by ferengi.borderworlds.dk (Postfix) with ESMTP id 9B423B841 for ; Sun, 11 Feb 2007 12:32:34 +0100 (CET) Received: by dominion.borderworlds.dk (Postfix, from userid 2000) id 884AD461; Sun, 11 Feb 2007 12:32:33 +0100 (CET) To: David Gilbert References: <17870.44048.280950.624790@canoe.dclg.ca> From: Christian Laursen Date: Sun, 11 Feb 2007 12:32:33 +0100 In-Reply-To: <17870.44048.280950.624790@canoe.dclg.ca> (David Gilbert's message of "Sun, 11 Feb 2007 00:39:28 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-hackers@freebsd.org Subject: Re: 4th loading a module. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Feb 2007 11:55:21 -0000 David Gilbert writes: > What I want to do is load a module (if_iwiNG or snd_ich) based on a > menu choice at the beastie menu. I have successfully added the manu > item and a variable --- following the example. I tried adding: > > dup bootwifikey @ = if > s" YES" s" if_iwiNG_load" setenv > 0 boot > then > > to the end, but it doesn't work. load_modules has already been > called. I tried (out of the blue) > > s" if_iwiNG" load_module > > ... but that's not the correct recipe (at least... 4th crashes if I > load that code). I use this code to load an mfsroot from forth: s" " s" /boot/mfsroot" s" mfs_root" s" -t" 4 load Perhaps something like the following might work for you: s" " s" /boot/kernel/if_iwiNG.ko" 2 load I am no forth expert either and have just been using trial and error to get to what I have. -- Christian Laursen