Merge pull request #104 from home-assistant/master

Merge master into build
This commit is contained in:
Pascal Vizeli
2017-06-04 22:45:52 +02:00
committed by GitHub
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
FROM %%BASE_IMAGE%%
# Add env
ENV LANG C.UTF-8
# Setup base
RUN apk add --no-cache tzdata jq bluez
# Copy data
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]

View File

@@ -0,0 +1,14 @@
{
"name": "Bluetooth BCM43xx",
"version": "0.1",
"slug": "Bluetooth_bcm43xx",
"description": "Activate bluetooth for bcm43xx",
"url": "https://home-assistant.io/addons/Bluetooth_bcm43xx/",
"startup": "initialize",
"boot": "auto",
"host_network": "true",
"devices": ["/dev/ttyAMA0:/dev/ttyAMA0:rwm"],
"options": {},
"schema": {},
"image": "homeassistant/{arch}-addon-bluetooth_bcm43xx"
}

5
bluetooth_bcm43xx/run.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -e
hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -
hciconfig hci0 up