From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 22 23:45:20 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 B79361065692 for ; Tue, 22 Dec 2009 23:45:20 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id 7EAB98FC15 for ; Tue, 22 Dec 2009 23:45:20 +0000 (UTC) Received: by gxk10 with SMTP id 10so6480588gxk.3 for ; Tue, 22 Dec 2009 15:45:19 -0800 (PST) Received: by 10.150.251.33 with SMTP id y33mr14292602ybh.143.1261525519579; Tue, 22 Dec 2009 15:45:19 -0800 (PST) Received: from papi.localnet ([187.78.196.172]) by mx.google.com with ESMTPS id 9sm2575701ywf.50.2009.12.22.15.45.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Dec 2009 15:45:18 -0800 (PST) To: Leslie Jensen From: Mario Lobo Date: Tue, 22 Dec 2009 20:43:55 -0300 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912222043.55783.lobo@bsd.com.br> Cc: freebsd-emulation@freebsd.org Subject: Re: VirtualBox error if kernel module loader in /boot/loader.conf (WAS Re: Loading kernel modules for virtualbox via script) CORRECTION ! 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 23:45:20 -0000 A small correction: take out the "-" lines and add the "+" line It should work now ! ---------------------------------------------------------- #!/bin/sh # # $FreeBSD: src/etc/rc.d/vbox,v 1.0 2009/12/22 20:20:06 mlobo Exp $ # # PROVIDE: vbox - # REQUIRE: LOGIN - # KEYWORD: nojail + # BEFORE: LOGIN . /etc/rc.subr name="vbox" start_cmd="${name}_start" stop_cmd=":" vboxm_start() { /sbin/kldload vboxnetflt /sbin/kldload vboxnetadp } vbox_start() { if checkyesno vbox_enable; then echo ' VirtualBox modules' vboxm_start fi } load_rc_config $name run_rc_command "$1" ------------------------------------------------------- Place vbox_enable="YES" on /etc/rc.conf -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)