From b181affe999e69fc28a4943f1238fec5abf40c52 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 6 Jun 2017 22:19:08 +0200 Subject: [PATCH] Fix run.sh (#118) * Update run.sh * Update config.json --- bluetooth_bcm43xx/config.json | 2 +- bluetooth_bcm43xx/run.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bluetooth_bcm43xx/config.json b/bluetooth_bcm43xx/config.json index 7ca3771..d00086c 100644 --- a/bluetooth_bcm43xx/config.json +++ b/bluetooth_bcm43xx/config.json @@ -1,6 +1,6 @@ { "name": "Bluetooth BCM43xx", - "version": "0.6", + "version": "0.7", "slug": "bluetooth_bcm43xx", "description": "Activate bluetooth for bcm43xx", "url": "https://home-assistant.io/addons/Bluetooth_bcm43xx/", diff --git a/bluetooth_bcm43xx/run.sh b/bluetooth_bcm43xx/run.sh index 25b9219..d8a92e7 100644 --- a/bluetooth_bcm43xx/run.sh +++ b/bluetooth_bcm43xx/run.sh @@ -4,4 +4,7 @@ set -e hciattach /dev/ttyAMA0 bcm43xx 115200 noflow - hciconfig hci0 up -wait "$(pgrep hciattach)" +while pgrep hciattach +do + sleep 600 +done