* Do not start hciuart.service if krnbt is used

Avoid starting (and failing to start) hciuart.service if krnbt is used.
This avoid unnecessary failed services showing up.

* Update buildroot-external/package/pi-bluetooth/hciuart.service

Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>

* Drop duplicate bluetooth in path

* Avoid bthelper@hci0.service failing

* Revert "Avoid bthelper@hci0.service failing"

This reverts commit f79777e63ec83ab45f27fbecb2da8b0c97992c64.

* Add ExecConditiono to bthelper@.service as well

---------

Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>
This commit is contained in:
Stefan Agner 2023-11-28 17:18:50 +01:00
parent b37dc33e5c
commit 376e4f9296
No known key found for this signature in database
GPG Key ID: 22D95D15D3A36E95
2 changed files with 2 additions and 0 deletions

View File

@ -6,5 +6,6 @@ Before=bluetooth.service
[Service]
Type=oneshot
ExecCondition=/bin/sh -c '[ "$(cat /proc/device-tree/$(cat /proc/device-tree/aliases/bluetooth)/status)" != "okay" ]'
ExecStart=/usr/bin/bthelper %I
RemainAfterExit=yes

View File

@ -5,6 +5,7 @@ After=dev-serial1.device
[Service]
Type=forking
ExecCondition=/bin/sh -c '[ "$(cat /proc/device-tree/$(cat /proc/device-tree/aliases/bluetooth)/status)" != "okay" ]'
ExecStart=/usr/bin/btuart
[Install]