Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Nov 2005 13:51:02 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
To:        freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org
Subject:   Re: [RFC] rc.d integration for the bluetooth subsystem
Message-ID:  <4367E346.4080106@savvis.net>
In-Reply-To: <4357D9E2.6010701@ebs.gr>
References:  <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4353DBBC.2000508@savvis.net> <43541F79.6040008@ebs.gr> <43554BCE.7090309@savvis.net> <4355FD0C.2090702@ebs.gr> <4356D12F.7000006@savvis.net> <43576A9D.1050209@ebs.gr> <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr>

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

3) required changes to /etc/Makefile, /etc/mtree/BSD.root.dist, etc. to 
hook up new scripts to the build.

i'd appreciate any feedback you might have.

this work is inspired by the patches from Panagiotis Astithas.

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4367E346.4080106>