Cleanup some udev rules (#684)

* Cleanup some udev rules

* Helper

* Use new bashio command

* Update CHANGELOG.md

* Address comments
This commit is contained in:
Pascal Vizeli
2019-09-03 09:37:38 +02:00
committed by GitHub
parent 269dd21f1e
commit a63f4c7086
4 changed files with 10 additions and 7 deletions

View File

@@ -1,5 +1,10 @@
# Changelog
## 3.4
- Cleanup some udev rules
- Use new Hass.io API for device reload
## 3.3
- Fix relative to absolut device lookup

View File

@@ -31,11 +31,6 @@ 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 \

View File

@@ -1,6 +1,6 @@
{
"name": "deCONZ",
"version": "3.3",
"version": "3.4",
"slug": "deconz",
"description": "Control a ZigBee network with ConBee or RaspBee by Dresden Elektronik",
"arch": ["amd64", "armhf"],

View File

@@ -3,7 +3,7 @@ set -e
# Init own udev service
/lib/systemd/systemd-udevd --daemon
udevadm trigger
bashio::hardware.trigger
# Ensure otau folder exists
mkdir -p "/data/otau"
@@ -24,8 +24,11 @@ VNC_PASSWORD=$(bashio::config 'vnc_password')
WEBSOCKET_PORT=$(bashio::addon.port 8080)
# Lookup udev link
sleep 3
if [ -L "${DECONZ_DEVICE}" ]; then
DECONZ_DEVICE="$(readlink -f "${DECONZ_DEVICE}")"
elif [ ! -e "${DECONZ_DEVICE}" ]; then
bashio::exit.nok "No device ${DECONZ_DEVICE} found!"
fi
# Load debug values