From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 19 17:28:42 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F069D16A40F for ; Tue, 19 Dec 2006 17:28:42 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8252743CA2 for ; Tue, 19 Dec 2006 17:28:42 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id B18C53BE5E; Tue, 19 Dec 2006 11:28:41 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31499-01-72; Tue, 19 Dec 2006 11:28:41 -0600 (CST) Received: from [10.12.163.251] (unknown [10.12.163.251]) by mailgate1b.savvis.net (Postfix) with ESMTP id 4C7103BE24; Tue, 19 Dec 2006 11:28:41 -0600 (CST) Message-ID: <45882148.6060803@savvis.net> Date: Tue, 19 Dec 2006 09:28:40 -0800 From: Maksim Yevmenkin User-Agent: Thunderbird 1.5.0.5 (X11/20060906) MIME-Version: 1.0 To: yar@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-bluetooth@freebsd.org, Ronald Klop Subject: Re: load_kld in bthidd missing in 6-STABLE X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 17:28:43 -0000 Yar, Ronald Klop wrote: > Hello, > > On FreeBSD 6-STABLE (30 nov 2006) /etc/rc.d/bthidd calls the function > load_kld. This function does not exist. > If I do load the modules manually it does work. would it be possible to mfc == Revision 1.59 / (download) - annotate - [select for diffs], Wed Jun 21 09:42:55 2006 UTC (5 months, 4 weeks ago) by yar Branch: MAIN Changes since 1.58: +39 -0 lines Diff to previous 1.58 (colored) Quite a number of rc.d scripts try to load kernel modules. Many of them do that conditionally depending on kldstat. The code is duplicated all over, but bugs can be uniqie. To make the things more consistent, introduce a new rc.subr function, load_kld, which takes care of loading a kernel module conditionally. (Found this lying for a while in my p4 branch for various hacks.) == into releng_6? or should i just fix bthidd(8) rc script? thanks, max