From owner-freebsd-emulation@FreeBSD.ORG Sun May 25 20:10:20 2014 Return-Path: Delivered-To: vbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14D2A901 for ; Sun, 25 May 2014 20:10:20 +0000 (UTC) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id CFDBB2D33 for ; Sun, 25 May 2014 20:10:19 +0000 (UTC) Received: from nine.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 42ADFA89C for ; Sun, 25 May 2014 20:10:12 +0000 (UTC) Received: by nine.des.no (Postfix, from userid 1001) id 735DA31026; Sun, 25 May 2014 22:09:53 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: vbox@freebsd.org Subject: virtualbox-ose-kmod rc scripts Date: Sun, 25 May 2014 22:09:53 +0200 Message-ID: <861tvh62ni.fsf@nine.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Sun, 25 May 2014 23:49:31 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18 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: Sun, 25 May 2014 20:10:20 -0000 First of all, why is there a vboxnet rc script but not a vboxdrv rc script? Second, there is already support in /etc/rc.subr for checking whether a module is loaded, and loading it if it isn't. Search for load_kld. There is no unload_kld, but IMHO you can just "kldunload" blindly. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no