mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-02 19:30:32 +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
|
||||
# JACK or a custom dsnoop chain) by dropping it into the addon config folder.
|
||||
if [ -f /config/asound.conf ]; then
|
||||
if [ -r /config/asound.conf ]; then
|
||||
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
|
||||
cp /config/asound.conf /etc/asound.conf
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user