[RFC] rc.d integration for the bluetooth subsystem

Yar Tikhiy yar at comp.chem.msu.su
Wed Nov 2 03:17:34 PST 2005


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


More information about the freebsd-bluetooth mailing list