diff --git a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh index 87881ce25..a738eb5e5 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh @@ -18,6 +18,10 @@ fi # SET SYSTEM # ############## +##################### +# ADD USER TO AUDIO # +##################### + # Set password bashio::log.info "Setting password for the user pi" if bashio::config.has_value "pi_password"; then @@ -64,6 +68,10 @@ if [ -n "${ALSA_CARD:-}" ]; then done fi +# Give permission to group audio +bashio::log.info "Adding user to audio group" +sudo usermod -aG audio pi || true + # Fix timezone as per installer CURRENT_TIMEZONE="$(timedatectl show --value --property=Timezone)" [ -f /etc/timezone ] && echo "$CURRENT_TIMEZONE" | sudo tee /etc/timezone > /dev/null