[RFC] rc.d integration for the bluetooth subsystem
Brooks Davis
brooks at one-eyed-alien.net
Mon Nov 7 12:01:01 PST 2005
On Fri, Nov 04, 2005 at 02:26:53PM -0800, Maksim Yevmenkin wrote:
> All,
>
> 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.
> 3) reads up /etc/bluetooth/$dev.conf (if any)
>
> 4) starts the stack
>
> even though /etc/bluetooth/{default,$dev}.conf are not exactly shell
> scripts they are still kinda like shell scripts :) these files should
> follow sh(1) syntax to set the variable, comments etc.
>
> the parser in bluetooth_read_conf() is very simple and value of a
> variable is still used in sh(1) eval. so one must be careful when
> editing these files.
>
> is this looks like something? i also could write
> bluetooth.device.conf(5) man page that describes the parameters as well
> as the syntax of the files.
A bluetooth.device.conf(5) man page would be a good idea, though the
example file is quite good.
-- 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/20051107/17e3435c/attachment.bin
More information about the freebsd-bluetooth
mailing list