From owner-freebsd-questions@FreeBSD.ORG Mon Dec 21 17:21:27 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 5E68A106568D for ; Mon, 21 Dec 2009 17:21:27 +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 DF9188FC16 for ; Mon, 21 Dec 2009 17:21:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 0FB674B601D; Mon, 21 Dec 2009 18:21:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -2.231 X-Spam-Level: X-Spam-Status: No, score=-2.231 tagged_above=-999 required=5 tests=[AWL=0.368, BAYES_00=-2.599] 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 qcnUXDC-Z3pf; Mon, 21 Dec 2009 18:19:57 +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 C06EB4BE008; Mon, 21 Dec 2009 18:15:46 +0100 (CET) Message-ID: <4B2FAD42.1060009@eskk.nu> Date: Mon, 21 Dec 2009 18:15:46 +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> <4B2FA6F0.30306@eskk.nu> <4B2FAA1D.9000701@lazlarlyricon.com> In-Reply-To: <4B2FAA1D.9000701@lazlarlyricon.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: [SOLVED]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 17:21:27 -0000 On 2009-12-21 18:02, Rolf Nielsen wrote: > Leslie Jensen wrote: >> >> 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. >> >> Correction.................... >> >> 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 could not be >> sure that the order is correct! >> >> >> >> >> > > If the order is important, one probably depends on the other. Try > loading only one of them and see if it automagically loads the other one. > > Or I guess you could simply load them from /etc/rc.local. Though that > is, AFAIK, no longer a recommended way to do things, it does still work. > I start a few things from there, simply because I couldn't be bothered > with writing an rc.d script. You where right! One of them loaded the other so problem solved :-) Thank you!