You've already forked operating-system
mirror of
https://github.com/m5stack/operating-system.git
synced 2026-05-20 11:20:07 -07:00
93a2d8a19b
* 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>
12 lines
332 B
Desktop File
12 lines
332 B
Desktop File
[Unit]
|
|
Description=Raspberry Pi bluetooth helper
|
|
Requires=hciuart.service bluetooth.service
|
|
After=hciuart.service
|
|
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
|