Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Nov 2005 14:26:53 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
To:        freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org
Cc:        Brooks Davis <brooks@one-eyed-alien.net>, Yar Tikhiy <yar@comp.chem.msu.su>
Subject:   Re: [RFC] rc.d integration for the bluetooth subsystem
Message-ID:  <436BE02D.2020404@savvis.net>
In-Reply-To: <20051103203217.GA30685@odin.ac.hmc.edu>
References:  <4356D12F.7000006@savvis.net> <43576A9D.1050209@ebs.gr> <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr> <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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)

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.

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?436BE02D.2020404>