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,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() {