[RFC] rc.d integration for the bluetooth subsystem

Brooks Davis brooks at one-eyed-alien.net
Tue Nov 8 12:16:37 PST 2005


On Tue, Nov 08, 2005 at 10:13:08AM -0800, Maksim Yevmenkin wrote:
> Brooks,
> 
> >>please find next revision of bluetooth-rc stuff at
> >>
> >>http://people.freebsd.org/~emax/bluetooth-rc-1.diff.txt
> >>
> >>in this revision i have moved all bluetooth configuration files under 
> >>/etc/bluetooth. bluetooth.device.sample is now called 'default.conf' and 
> >>file that contain device specific overrides called '$dev.conf' (i.e. 
> >>'ubt0.conf').
> >>
> >>so, '/etc/rc.d/bluetooth start $dev' does the following
> >>
> >>1) sets hardwired defaults (for backward compatibility)
> >>
> >>2) reads up /etc/bluetooth/default.conf (if any)
> >
> >I think /etc/defaults/bluetooth.device.conf might be better since we do
> >have a defined location of default files and this will discourge people
> >from messing with them.
> 
> that is fine with me. i'm sorry this is taking so long :) now the last 
> question: should we keep device specific files under /etc/bluetooth or 
> just under /etc? right now i have devfs.rules, pccard.conf, 
> periodic.conf and rc.conf under /etc/defaults. overrides for these go 
> into /etc.
> 
> another alternative (which probably no one is going to like) is to use 
> /etc/bluetooth/defaults/device.conf (defaults) and 
> /etc/bluetooth/$dev.conf files (overrides).

I think they should go in /etc/bluetooth/$dev.conf and the defults
should go in /etc/defaults.  The per-device files should not go directly
in /etc because there is more that one of them.

-- Brooks


More information about the freebsd-bluetooth mailing list