From owner-freebsd-bluetooth@FreeBSD.ORG Wed Nov 2 11:17:34 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3836C16A420; Wed, 2 Nov 2005 11:17:34 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A06043D4C; Wed, 2 Nov 2005 11:17:25 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id jA2BHAUj006084; Wed, 2 Nov 2005 14:17:10 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id jA2BH9s1006083; Wed, 2 Nov 2005 14:17:09 +0300 (MSK) (envelope-from yar) Date: Wed, 2 Nov 2005 14:17:09 +0300 From: Yar Tikhiy To: Maksim Yevmenkin Message-ID: <20051102111709.GD2465@comp.chem.msu.su> References: <1129491219.1616.18.camel@localhost> <4353DBBC.2000508@savvis.net> <43541F79.6040008@ebs.gr> <43554BCE.7090309@savvis.net> <4355FD0C.2090702@ebs.gr> <4356D12F.7000006@savvis.net> <43576A9D.1050209@ebs.gr> <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr> <4367E346.4080106@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4367E346.4080106@savvis.net> User-Agent: Mutt/1.5.9i Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org Subject: Re: [RFC] rc.d integration for the bluetooth subsystem 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: Wed, 02 Nov 2005 11:17:34 -0000 On Tue, Nov 01, 2005 at 01:51:02PM -0800, Maksim Yevmenkin wrote: > All, > > please find the first draft of bluetooth rc.d scripts located at > > http://people.freebsd.org/~emax/bluetooth-rc.diff.txt > > this patch adds > > 1) /etc/rc.d/bluetooth script that will be used to start and stop > bluetooth devices. it will be called by devd(8) in response to device > arrival and departure events. the script also supports _optional_ per > device configuration. per device configuration is stored in > /etc/rc.conf.d/bluetooth.$dev file, where $dev is the driver name of the > device, i.e. ubt0, sio4, btccc1 > > 2) /etc/rc.conf.d/bluetooth.device.sample script. this is just an > example. it should be copied to /etc/rc.conf.d/bluetooth.$dev and then > defaults can be adjusted. once again if there is no > /etc/rc.conf.d/bluetooth.$dev script then reasonable defaults will be used. My concern is about putting things not related directly to system startup driven by rc(8) in /etc/rc.d and /etc/rc.conf.d directories. Perhaps it would be better to still use rc.subr as a source of great subroutines, but place the bluetooth scripts and configs in their own directories -- rc.subr should support this. -- Yar