mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
fix bluetooth on wrong return (#112)
* Update run.sh * Update config.json
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Bluetooth BCM43xx",
|
"name": "Bluetooth BCM43xx",
|
||||||
"version": "0.3",
|
"version": "0.4",
|
||||||
"slug": "bluetooth_bcm43xx",
|
"slug": "bluetooth_bcm43xx",
|
||||||
"description": "Activate bluetooth for bcm43xx",
|
"description": "Activate bluetooth for bcm43xx",
|
||||||
"url": "https://home-assistant.io/addons/Bluetooth_bcm43xx/",
|
"url": "https://home-assistant.io/addons/Bluetooth_bcm43xx/",
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ set -e
|
|||||||
hciattach -n /dev/ttyAMA0 bcm43xx 115200 noflow - &
|
hciattach -n /dev/ttyAMA0 bcm43xx 115200 noflow - &
|
||||||
HCI_PID=$!
|
HCI_PID=$!
|
||||||
|
|
||||||
hciconfig hci0 up
|
hciconfig hci0 up || true
|
||||||
|
|
||||||
wait $HCI_PID
|
wait $HCI_PID
|
||||||
|
|||||||
Reference in New Issue
Block a user