From owner-freebsd-questions@FreeBSD.ORG Mon Dec 21 16:41:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21EDA106566B for ; Mon, 21 Dec 2009 16:41:47 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mx1.bjare.net (mx1.bjare.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id D10B78FC19 for ; Mon, 21 Dec 2009 16:41:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 16FBF5E46A; Mon, 21 Dec 2009 17:41:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -2.227 X-Spam-Level: X-Spam-Status: No, score=-2.227 tagged_above=-999 required=5 tests=[AWL=0.373, BAYES_00=-2.599, SPF_PASS=-0.001] Received: from mx1.bjare.net ([127.0.0.1]) by localhost (mx1.bjare.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sh4UwuLiVvZp; Mon, 21 Dec 2009 17:41:42 +0100 (CET) X-BN-MX1: ja X-BN-MailInfo: BjareNet Received: from bljbsd01.no-ip.org (c-195-216-040-164.static.bjare.net [195.216.40.164]) by mx1.bjare.net (Postfix) with ESMTP id A8DA65E470; Mon, 21 Dec 2009 17:41:42 +0100 (CET) Message-ID: <4B2FA546.5000701@eskk.nu> Date: Mon, 21 Dec 2009 17:41:42 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.1.5) Gecko/20091221 Thunderbird/3.0 MIME-Version: 1.0 To: Rolf Nielsen References: <4B2F60BA.7010002@bsdforen.de> <4B2F9CEF.6050501@eskk.nu> <4B2FA3DD.5050206@lazlarlyricon.com> In-Reply-To: <4B2FA3DD.5050206@lazlarlyricon.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Loading kernel modules for virtualbox via script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 16:41:47 -0000 On 2009-12-21 17:35, Rolf Nielsen wrote: > Leslie Jensen wrote: >> >> Following the suggestion here: >> http://forums.freebsd.org/showpost.php?p=45664&postcount=5 >> >> To load two kernel modules via a script in /etc/rc.d/ >> >> Produces the following: >> >> WARNING: Ignoring old-style startup script /etc/rc.d/ >> >> I found the answer here: >> >> http://sourceforge.net/tracker/index.php?func=detail&aid=2896643&group_id=151951&atid=782616 >> >> >> >> I would like a suggestion on how to load the modules! >> >> Thanks >> >> /Leslie >> >> > > Can't you load the modules from /boot/loader.conf? AFAIK VirtualBox > places its modules in /boot/modules, which makes them loadable by > load_modulename="YES" in /boot/loader.conf, where modulename should be > replaced by the filename of the module(s), omitting the leading path and > the .ko suffix, e.g. nvidia_load=YES" loads /boot/modules/nvidia.ko. I read in the same post that the loading order was important, and the way I understood it was that, if I load via loader.conf I be sure that the order is correct!