From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 22 20:52:37 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93C71106568B; Tue, 22 Dec 2009 20:52:37 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id E87228FC18; Tue, 22 Dec 2009 20:52:36 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 4so1677060eyf.9 for ; Tue, 22 Dec 2009 12:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=uNo1CcfN497OMMOx6OQGKZ48LaNhEkxruWp9plVlfQI=; b=jV68A8blFvd9htZAUBh2B2qLITamR8V972lUciNG35KmhvKt2QX9CMuLbvvhp+wdfE UQmP/UL/VjGgdeE1+FhKKGg66qKG4O26m+aCgW0U4SKLNU0wjQAEDElh4pUKdzJXk1gb PAY1ojxHpLKJwBuiEn9IfyhYa2y5pHY1y16/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=s4amp+dAr4mbGLKxP93jMzZJgjwwYlOuClt1JmL5UAp48i5H7QuNHO1P9UpBhNEcse /g4Qkh810AT1oc2IWRDaY1veVrPJfIeKa7ymh7x3o7SpFAN8f+4PTXk0mR/tVycszfz2 EPLDDA7bLTxuKuOThpgZGQV82UbQ9xxByJUV0= Received: by 10.213.109.81 with SMTP id i17mr6403ebp.95.1261513779116; Tue, 22 Dec 2009 12:29:39 -0800 (PST) Received: from darklight.org.ru ([213.132.76.16]) by mx.google.com with ESMTPS id 15sm4717548ewy.12.2009.12.22.12.29.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Dec 2009 12:29:38 -0800 (PST) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.3/8.14.3) with ESMTP id nBMKTZ9k053045; Tue, 22 Dec 2009 23:29:35 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.3/8.14.3/Submit) id nBMKTYDX053041; Tue, 22 Dec 2009 23:29:34 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.org.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Tue, 22 Dec 2009 23:29:34 +0300 From: Yuri Pankov To: Doug Barton Message-ID: <20091222202934.GE2499@darklight.org.ru> References: <4B2F60BA.7010002@bsdforen.de> <4B2FF8A0.8080009@eskk.nu> <4B312A6D.4040907@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B312A6D.4040907@FreeBSD.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@freebsd.org Subject: Re: Loading kernel modules for virtualbox via script X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 20:52:37 -0000 On Tue, Dec 22, 2009 at 12:22:05PM -0800, Doug Barton wrote: > The appropriate way to do this is to add them to /boot/loader.conf, > like this: > > vboxdrv_load="yes" > vboxnetflt_load="yes" > vboxnetadp_load="yes" > > You could also write a new-style rc.d script to do this fairly easily, > see > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html > for more information. There are also existing ports that use rc.d to > load kernel modules, although none of the names come to mind off hand. And many base rc scripts in /etc/rc.d/, grep for load_kld, defined and described in /etc/rc.subr. > > > Doug > > -- > > Improve the effectiveness of your Internet presence with > a domain name makeover! http://SupersetSolutions.com/ Yuri