a312cc4ea3
Introduce /etc/rc.d/bluetooth script to start/stop Bluetooth devices. It will be called from devd(8) in response to device arrival/departure events. It is also possible to call it by hand to start/stop particular device without unplugging it. Introduce generic way to set configuration parameters for Bluetooth devices. By default /etc/rc.d/bluetooth script has hardwired defaults compatible with old rc.bluetooth from /usr/share/netgraph/bluetooth/examples. These can be overridden using /etc/defaults/bluetooth.device.conf file (system wide defaults). Finally, there could be another device specific override file located in /etc/bluetooth/$device.conf (where $device is ubt0, btccc0 etc.) The list of configuration parameters and their meaning described in the /etc/defaults/bluetooth.device.conf file. Even though Bluetooth device configuration files are not shell scripts, they must follow basic sh(1) syntax. Add rc.d scripts for the hcsecd(8) and sdpd(8) daemons. Put defaults into /etc/defaults/rc.conf. Both daemons can run even if no Bluetooth devices are attached to the system. Both daemons depend on Bluetooth socket layer. Fix Bluetooth assigned numbers URL in /etc/bluetooth/protocols file.
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
# $Id: protocols,v 1.2 2003/05/21 22:17:14 max Exp $
|
|
# $FreeBSD$
|
|
#
|
|
# Bluetooth Protocol/Service Multiplexor (PSM) names and numbers
|
|
#
|
|
# See also
|
|
# https://www.bluetooth.org/foundry/assignnumb/document/assigned_numbers
|
|
#
|
|
# Protocol PSM Alias Reference
|
|
|
|
sdp 1 SDP # Service Discovery Protocol
|
|
rfcomm 3 RFCOMM # RFCOMM with TS 07.10
|
|
tcs-bin 5 TCS-BIN # Telephony Control Specification
|
|
tcs-bin-cordless 7 TCS-BIN-CORDLESS # Telephony Control Specification
|
|
bnep 15 BNEP # Bluetooth Network Encapsulation Protocol
|
|
hid-control 17 HID-Control # Human Interface Device (control)
|
|
hid-interrupt 19 HID-Interrupt # Human Interface Device (interrupt)
|
|
upnp 21 UPnP # See ESDP, Bluetooth SIG
|
|
avctp 23 AVCTP # Audio/Video Control Transport Protocol
|
|
avdtp 25 AVDTP # Audio/Video Distribution Transport Protocol
|
|
udi-c-plane 29 UDI-C-Plane # Unrestricted Digital Information Profile
|
|
|