mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-03 15:26:29 +00:00
21 lines
638 B
Bash
21 lines
638 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Start udev service
|
|
# ==============================================================================
|
|
|
|
if bashio::fs.directory_exists /run/udev && ! bashio::fs.file_exists /run/.old_udev; then
|
|
bashio::log.info "Using udev information from host"
|
|
bashio::exit.ok
|
|
fi
|
|
|
|
bashio::log.info "Setup udev backend inside container"
|
|
udevd --daemon
|
|
|
|
bashio::log.info "Update udev information"
|
|
touch /run/.old_udev
|
|
if udevadm trigger; then
|
|
udevadm settle || true
|
|
else
|
|
bashio::log.warning "Triggering of udev rules fails!"
|
|
fi
|