[RFC] rc.d integration for the bluetooth subsystem

Brooks Davis brooks at one-eyed-alien.net
Wed Nov 2 08:13:42 PST 2005


On Wed, Nov 02, 2005 at 02:17:09PM +0300, Yar Tikhiy wrote:
> 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.

I don't disagree, but we've already got three scripts like this in
/etc/rc.d (dhclient, power_profile, and wpa_supplicant) so I don't think
it's a big deal.  IMO, the conf files are find (though I don't like the
idea of a .sample in /etc/rc.conf.d).  There is some argument for moving
the scripts to another directory though.   I'm not sure what we'd call
it though.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-bluetooth/attachments/20051102/e026096f/attachment.bin


More information about the freebsd-bluetooth mailing list