deCONZ 2.05.67 / new udev functions (#671)

* deCONZ 2.05.67 / new udev functions

* bump version

* Update CHANGELOG.md

* Fix load issues

* Cleanup

* lookup simlink

* Fix lint

* fix comments
This commit is contained in:
Pascal Vizeli
2019-08-30 11:59:28 +02:00
committed by GitHub
parent bac3f65023
commit f2970e23ea
5 changed files with 24 additions and 4 deletions

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 3.2
- Bump deCONZ to 2.05.67
- Add own udev service
- Monitoring only deCONZ process
## 3.1 ## 3.1
- Improves VNC desktop name - Improves VNC desktop name

View File

@@ -9,6 +9,7 @@ ARG BUILD_ARCH
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
curl \ curl \
udev \
iproute2 \ iproute2 \
iputils-ping \ iputils-ping \
kmod \ kmod \
@@ -30,6 +31,11 @@ RUN apt-get update \
xfonts-base \ xfonts-base \
xfonts-scalable \ xfonts-scalable \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
\
&& curl -L https://github.com/gentoo/eudev/archive/master.tar.gz | tar -xz \
&& cp eudev-master/rules/* /etc/udev/rules.d/ \
&& rm -rf eudev-master \
\
&& if [ "${BUILD_ARCH}" = "armhf" ]; \ && if [ "${BUILD_ARCH}" = "armhf" ]; \
then \ then \
curl -q -L -o /wiringpi.deb https://unicorn.drogon.net/wiringpi-2.46-1.deb \ curl -q -L -o /wiringpi.deb https://unicorn.drogon.net/wiringpi-2.46-1.deb \

View File

@@ -4,6 +4,6 @@
"armhf": "homeassistant/armhf-base-raspbian:stretch" "armhf": "homeassistant/armhf-base-raspbian:stretch"
}, },
"args": { "args": {
"DECONZ_VERSION": "2.05.66" "DECONZ_VERSION": "2.05.67"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "deCONZ", "name": "deCONZ",
"version": "3.1", "version": "3.2",
"slug": "deconz", "slug": "deconz",
"description": "Control a ZigBee network with ConBee or RaspBee by Dresden Elektronik", "description": "Control a ZigBee network with ConBee or RaspBee by Dresden Elektronik",
"arch": ["amd64", "armhf"], "arch": ["amd64", "armhf"],
@@ -23,6 +23,7 @@
"host_network": true, "host_network": true,
"kernel_modules": true, "kernel_modules": true,
"auto_uart": true, "auto_uart": true,
"udev": true,
"gpio": true, "gpio": true,
"apparmor": false, "apparmor": false,
"privileged": [ "privileged": [

View File

@@ -1,6 +1,10 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
set -e set -e
# Init own udev service
/lib/systemd/systemd-udevd --daemon
udevadm trigger
# Ensure otau folder exists # Ensure otau folder exists
mkdir -p "/data/otau" mkdir -p "/data/otau"
@@ -19,6 +23,11 @@ VNC_PORT=$(bashio::addon.port 5900)
VNC_PASSWORD=$(bashio::config 'vnc_password') VNC_PASSWORD=$(bashio::config 'vnc_password')
WEBSOCKET_PORT=$(bashio::addon.port 8080) WEBSOCKET_PORT=$(bashio::addon.port 8080)
# Lookup udev link
if [ -L "${DECONZ_DEVICE}" ]; then
DECONZ_DEVICE="$(readlink "${DECONZ_DEVICE}")"
fi
# Load debug values # Load debug values
bashio::config.has_value 'dbg_info' \ bashio::config.has_value 'dbg_info' \
&& DBG_INFO="$(bashio::config 'dbg_info')" || DBG_INFO=1 && DBG_INFO="$(bashio::config 'dbg_info')" || DBG_INFO=1
@@ -91,12 +100,10 @@ WAIT_PIDS+=($!)
# Start OTA updates for deCONZ # Start OTA updates for deCONZ
bashio::log.info "Running the deCONZ OTA updater..." bashio::log.info "Running the deCONZ OTA updater..."
deCONZ-otau-dl.sh &> /dev/null & deCONZ-otau-dl.sh &> /dev/null &
WAIT_PIDS+=($!)
# Start OTA updates for IKEA # Start OTA updates for IKEA
bashio::log.info "Running the IKEA OTA updater..." bashio::log.info "Running the IKEA OTA updater..."
ika-otau-dl.sh &> /dev/null & ika-otau-dl.sh &> /dev/null &
WAIT_PIDS+=($!)
# Register stop # Register stop
function stop_addon() { function stop_addon() {