mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 21:54: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,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