mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add AIC8800 Bluetooth Service and Script
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
committed by
c0rnelius
parent
9f4f78ba94
commit
756a48c080
15
packages/bsp/aic8800/aic-bluetooth
Executable file
15
packages/bsp/aic8800/aic-bluetooth
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# HW Reset
|
||||
hciattach -r -s 1500000 /dev/ttyS1 any 1500000 flow nosleep > /dev/null 2>&1
|
||||
|
||||
# Kill hciattach
|
||||
sleep .50
|
||||
killall hciattach
|
||||
|
||||
# Attach Bluetooth HCI UART
|
||||
sleep .50
|
||||
hciattach -s 1500000 /dev/ttyS1 any 1500000 flow nosleep > /dev/null 2>&1
|
||||
rfkill unblock all
|
||||
|
||||
exit 0
|
||||
13
packages/bsp/aic8800/aic-bluetooth.service
Normal file
13
packages/bsp/aic8800/aic-bluetooth.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=AIC8800 Bluetooth
|
||||
After=bluetooth.service bluetooth.target
|
||||
Requires=bluetooth.service bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
ExecStartPre=/usr/sbin/rfkill unblock all
|
||||
ExecStart=/usr/bin/aic-bluetooth
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user