Commit a20c07b6 authored by Florent Revest's avatar Florent Revest

bluez5: Enable experimental Bluetooth LE API and disable classic BT (BR/EDR)...

bluez5: Enable experimental Bluetooth LE API and disable classic BT (BR/EDR) to let Android devices connect to the BlueZ peripheral mode
parent 30ace3d3
[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth
[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib/bluez5/bluetooth/bluetoothd -ndE
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1
[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service
FILESEXTRAPATHS_prepend := "${THISDIR}/bluez5:"
SRC_URI += "file://main.conf \
file://bluetooth.service"
do_install_append() {
install -d ${D}/etc/bluetooth/
cp ${WORKDIR}/main.conf ${D}/etc/bluetooth/main.conf
install -d ${D}/lib/systemd/system/
cp ${WORKDIR}/bluetooth.service ${D}/lib/systemd/system/bluetooth.service
}
PACKAGECONFIG_append += "experimental"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment