mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 05:34:20 +01:00
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:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 3.2
|
||||
|
||||
- Bump deCONZ to 2.05.67
|
||||
- Add own udev service
|
||||
- Monitoring only deCONZ process
|
||||
|
||||
## 3.1
|
||||
|
||||
- Improves VNC desktop name
|
||||
|
||||
@@ -9,6 +9,7 @@ ARG BUILD_ARCH
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
udev \
|
||||
iproute2 \
|
||||
iputils-ping \
|
||||
kmod \
|
||||
@@ -30,6 +31,11 @@ RUN apt-get update \
|
||||
xfonts-base \
|
||||
xfonts-scalable \
|
||||
&& 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" ]; \
|
||||
then \
|
||||
curl -q -L -o /wiringpi.deb https://unicorn.drogon.net/wiringpi-2.46-1.deb \
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"armhf": "homeassistant/armhf-base-raspbian:stretch"
|
||||
},
|
||||
"args": {
|
||||
"DECONZ_VERSION": "2.05.66"
|
||||
"DECONZ_VERSION": "2.05.67"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "deCONZ",
|
||||
"version": "3.1",
|
||||
"version": "3.2",
|
||||
"slug": "deconz",
|
||||
"description": "Control a ZigBee network with ConBee or RaspBee by Dresden Elektronik",
|
||||
"arch": ["amd64", "armhf"],
|
||||
@@ -23,6 +23,7 @@
|
||||
"host_network": true,
|
||||
"kernel_modules": true,
|
||||
"auto_uart": true,
|
||||
"udev": true,
|
||||
"gpio": true,
|
||||
"apparmor": false,
|
||||
"privileged": [
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#!/usr/bin/env bashio
|
||||
set -e
|
||||
|
||||
# Init own udev service
|
||||
/lib/systemd/systemd-udevd --daemon
|
||||
udevadm trigger
|
||||
|
||||
# Ensure otau folder exists
|
||||
mkdir -p "/data/otau"
|
||||
|
||||
@@ -19,6 +23,11 @@ VNC_PORT=$(bashio::addon.port 5900)
|
||||
VNC_PASSWORD=$(bashio::config 'vnc_password')
|
||||
WEBSOCKET_PORT=$(bashio::addon.port 8080)
|
||||
|
||||
# Lookup udev link
|
||||
if [ -L "${DECONZ_DEVICE}" ]; then
|
||||
DECONZ_DEVICE="$(readlink "${DECONZ_DEVICE}")"
|
||||
fi
|
||||
|
||||
# Load debug values
|
||||
bashio::config.has_value 'dbg_info' \
|
||||
&& DBG_INFO="$(bashio::config 'dbg_info')" || DBG_INFO=1
|
||||
@@ -91,12 +100,10 @@ WAIT_PIDS+=($!)
|
||||
# Start OTA updates for deCONZ
|
||||
bashio::log.info "Running the deCONZ OTA updater..."
|
||||
deCONZ-otau-dl.sh &> /dev/null &
|
||||
WAIT_PIDS+=($!)
|
||||
|
||||
# Start OTA updates for IKEA
|
||||
bashio::log.info "Running the IKEA OTA updater..."
|
||||
ika-otau-dl.sh &> /dev/null &
|
||||
WAIT_PIDS+=($!)
|
||||
|
||||
# Register stop
|
||||
function stop_addon() {
|
||||
|
||||
Reference in New Issue
Block a user