systemd unit for CT bluetooth
This commit is contained in:
parent
dfaaf6f245
commit
2dd09dc565
17
scripts/brcm40183-patch.service
Normal file
17
scripts/brcm40183-patch.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Patch firmware for brcm40183 Bluetooth adapter
|
||||
Before=bluetooth.service
|
||||
|
||||
[Service]
|
||||
Environment=MAC_ADDR=11:22:33:44:55:66
|
||||
Environment=PORT=/dev/ttyS1
|
||||
EnvironmentFile=/etc/default/brcm40183
|
||||
TimeoutStartSec=60
|
||||
Type=simple
|
||||
ExecStartPre=/usr/local/bin/brcm_bt_reset /dev/${PORT}
|
||||
ExecStartPre=/bin/echo -en "" > /dev/${PORT}
|
||||
ExecStartPre=/usr/local/bin/brcm_patchram_plus -d --patchram /lib/firmware/ap6210/bcm20710a1.hcd --no2bytes --tosleep 1000 --bd_addr ${MAC_ADDR} /dev/${PORT}
|
||||
ExecStart=/usr/bin/hciattach -n /dev/${PORT} any
|
||||
|
||||
[Install]
|
||||
WantedBy=bluetooth.target
|
||||
Loading…
Reference in New Issue
Block a user