Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 23:29:34 +0300
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Loading kernel modules for virtualbox via script
Message-ID:  <20091222202934.GE2499@darklight.org.ru>
In-Reply-To: <4B312A6D.4040907@FreeBSD.org>
References:  <alpine.BSF.2.00.0912202157330.32571@fledge.watson.org> <4B2F60BA.7010002@bsdforen.de> <4B2FF8A0.8080009@eskk.nu> <4B312A6D.4040907@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091222202934.GE2499>