mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-05 20:52:29 +02:00
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:
@@ -11,8 +11,14 @@ echo " "
|
|||||||
# Allow advanced users to supply their own /etc/asound.conf (e.g. to enable
|
# 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.
|
# JACK or a custom dsnoop chain) by dropping it into the addon config folder.
|
||||||
if [ -f /config/asound.conf ]; then
|
if [ -f /config/asound.conf ]; then
|
||||||
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
|
if [ -r /config/asound.conf ]; then
|
||||||
cp /config/asound.conf /etc/asound.conf
|
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
|
fi
|
||||||
|
|
||||||
# Check if alsa_card is provided
|
# Check if alsa_card is provided
|
||||||
|
|||||||
Reference in New Issue
Block a user