Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexandre
2026-05-27 07:27:14 +02:00
committed by GitHub
parent 4975eca7c2
commit d6de19315d

View File

@@ -11,8 +11,14 @@ echo " "
# Allow advanced users to supply their own /etc/asound.conf (e.g. to enable
# JACK or a custom dsnoop chain) by dropping it into the addon config folder.
if [ -f /config/asound.conf ]; then
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
cp /config/asound.conf /etc/asound.conf
if [ -r /config/asound.conf ]; then
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
if ! cp /config/asound.conf /etc/asound.conf; then
bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /etc/asound.conf defaults"
fi
else
bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /etc/asound.conf defaults"
fi
fi
# Check if alsa_card is provided