mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
Merge pull request #104 from home-assistant/master
Merge master into build
This commit is contained in:
13
bluetooth_bcm43xx/Dockerfile
Normal file
13
bluetooth_bcm43xx/Dockerfile
Normal 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" ]
|
||||||
14
bluetooth_bcm43xx/config.json
Normal file
14
bluetooth_bcm43xx/config.json
Normal 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
5
bluetooth_bcm43xx/run.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -
|
||||||
|
hciconfig hci0 up
|
||||||
Reference in New Issue
Block a user