Skip to content

Commit

Permalink
Support udev from host (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Jan 29, 2021
1 parent f6a39da commit 463420f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rootfs/etc/cont-init.d/udev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# ==============================================================================
# Start udev service
# ==============================================================================

if bashio::fs.directory_exists /run/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"
Expand Down

0 comments on commit 463420f

Please sign in to comment.