mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 07:26:28 +00:00
Do not start hciuart.service/bthelper@hci0.service if krnbt is used (#2947)
* 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:
parent
b37dc33e5c
commit
376e4f9296
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user