Skip to content
Commit 8b9b62c9 authored by maxnet's avatar maxnet Committed by XECDesign
Browse files

Do not wait for hciuart before staring bluetoothd (#4)

* Do not wait for hciuart before staring bluetoothd

- Remove Before=bluetooth.service in hciuart service.
- Change "Wants=dev-serial1" to "Requires=dev-serial1" because
  with "Wants" it runs the script anyway after timeout, even
  though device does not exists.
- Invoke bthelper through udev rules.
  This is done indirectly through bthelper@hci0 service, because
  if run directly as udev script it results in a
  "Can't open HCI socket.: Address family not supported by protocol"
  error, due to RestrictAddressFamilies security setting in
  /lib/systemd/system/systemd-udevd.service not allowing AF_BLUETOOTH

Closes #3
parent ca772cce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment