You've already forked Raspberry-Pi-Bluetooth
Initialize Git Repository: 'Raspberry-Pi-Bluetooth'
All checks were successful
Raspberry Pi Bluetooth (Bookworm) / Raspberry Pi Bluetooth [arm64] (push) Successful in 11s
All checks were successful
Raspberry Pi Bluetooth (Bookworm) / Raspberry Pi Bluetooth [arm64] (push) Successful in 11s
This commit is contained in:
11
root/lib/systemd/system/bthelper@.service
Normal file
11
root/lib/systemd/system/bthelper@.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Raspberry Pi family bluetooth helper
|
||||
After=hciuart.service
|
||||
Before=bluetooth.service
|
||||
Requires=hciuart.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bthelper %I
|
||||
ProtectSystem=full
|
||||
RemainAfterExit=yes
|
||||
16
root/lib/systemd/system/hciuart.service
Normal file
16
root/lib/systemd/system/hciuart.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Configure Bluetooth Modems connected by UART
|
||||
ConditionFileNotEmpty=/proc/device-tree/soc/gpio@7e200000/bt_pins/brcm,pins
|
||||
StartLimitIntervalSec=300
|
||||
StartLimitBurst=6
|
||||
After=dev-serial1.device
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/btuart
|
||||
ProtectSystem=full
|
||||
Restart=on-failure
|
||||
RestartSec=3s
|
||||
|
||||
[Install]
|
||||
WantedBy=dev-serial1.device
|
||||
2
root/lib/udev/rules.d/90-raspi-bluetooth.rules
Normal file
2
root/lib/udev/rules.d/90-raspi-bluetooth.rules
Normal file
@@ -0,0 +1,2 @@
|
||||
# Raspberry Pi bluetooth module: enable routing of SCO packets to the HCI interface
|
||||
ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]", TAG+="systemd", ENV{SYSTEMD_WANTS}+="bthelper@%k.service"
|
||||
Reference in New Issue
Block a user