From owner-freebsd-emulation@FreeBSD.ORG Mon May 26 04:02:03 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 D88B18EE for ; Mon, 26 May 2014 04:02:03 +0000 (UTC) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B6382188 for ; Mon, 26 May 2014 04:02:03 +0000 (UTC) Received: by mail-ob0-f177.google.com with SMTP id wp4so7391512obc.22 for ; Sun, 25 May 2014 21:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2zZWaQsescBmBRcTCAzSmCu4TLVxPDJJtNoGWv7BZzo=; b=fzMXh83c8B8lHKcaI9dbGZ541/FTOmCQezxFpfKRzPbc2/sRkfDyOH/M/M2nAZT7dY cwM2pevHwyTFQwgfwVjeBuot9sa/hRaicKKR29CGTN/oFYYBoS9RTd9o0XjsOT1Ak4XL AfnptuvqntNOad7e++e2KWYcN/euRVSO8WIHY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=2zZWaQsescBmBRcTCAzSmCu4TLVxPDJJtNoGWv7BZzo=; b=JV/+TaIxes8lxdI1UJ4y01tSQoKPLJkbNZMfOEd6+8ls+tTWmIGL29QR4IJ4HfbR9v +8BkOtG1YeaidtC2Mp/hkmP+VqoyVm0DFf3YzcVA++s8XjGV/507x0vnHdles7Tp3pkv EUsWAUtq2q7DtynIb5HLM8AvpWJMkRHaHo1C3tnpg/2KHhBeD1CbmeWLwiW/ZonP1WE5 zkTZapnE6Ui0TTmfh1HIj6Nl6J2pU+6rTVZVqQGcPkyf/SPep65Q1U1IvB7d3BxQYymG JnuAOejFsP6eDE43ZjYyUpEiJLXLnkZhbyflZzpdBWD8d1LF/dowZpn9Nr/qWFOgYdBC kRyQ== X-Gm-Message-State: ALoCoQm5sBXqiCmmddbPvSRYwqOF3YvQ8Sfb+AEgiOEWmwxHy3XETt+hvAWL79hcrfkq8INSvEq+ MIME-Version: 1.0 X-Received: by 10.182.96.99 with SMTP id dr3mr22207935obb.42.1401076922787; Sun, 25 May 2014 21:02:02 -0700 (PDT) Received: by 10.76.154.136 with HTTP; Sun, 25 May 2014 21:02:02 -0700 (PDT) X-Originating-IP: [89.144.223.230] Received: by 10.76.154.136 with HTTP; Sun, 25 May 2014 21:02:02 -0700 (PDT) In-Reply-To: <861tvh62ni.fsf@nine.des.no> References: <861tvh62ni.fsf@nine.des.no> Date: Mon, 26 May 2014 06:02:02 +0200 Message-ID: Subject: Re: virtualbox-ose-kmod rc scripts From: =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= To: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= X-Mailman-Approved-At: Mon, 26 May 2014 04:44:44 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: vbox@freebsd.org 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: Mon, 26 May 2014 04:02:04 -0000 Am 26.05.2014 01:49 schrieb "Dag-Erling Sm=C3=B8rgrav" : > > 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. The vboxdrv module needs to be loaded via loader.conf or it can cause kernel panics. There are also some features that don't work properly if I remember correctly because of the startup order of startscripts so we can't use a rc script.