mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-08 22:22:29 +02:00
Disable user-provided ALSA config handling
Commented out the section that handles user-provided ALSA config.
This commit is contained in:
@@ -11,16 +11,16 @@ echo " "
|
||||
# Allow advanced users to supply their own ALSA config (e.g. to enable JACK
|
||||
# or a custom dsnoop chain) by dropping asound.conf into the addon config
|
||||
# folder. Written to /root/.asoundrc because /etc/asound.conf is read-only.
|
||||
if [ -f /config/asound.conf ]; then
|
||||
if [ -r /config/asound.conf ]; then
|
||||
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
|
||||
if ! cp /config/asound.conf /root/.asoundrc; then
|
||||
bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /root/.asoundrc defaults"
|
||||
fi
|
||||
else
|
||||
bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /root/.asoundrc defaults"
|
||||
fi
|
||||
fi
|
||||
#if [ -f /config/asound.conf ]; then
|
||||
# if [ -r /config/asound.conf ]; then
|
||||
# bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
|
||||
# if ! cp /config/asound.conf /root/.asoundrc; then
|
||||
# bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /root/.asoundrc defaults"
|
||||
# fi
|
||||
# else
|
||||
# bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /root/.asoundrc defaults"
|
||||
# fi
|
||||
#fi
|
||||
|
||||
# Check if alsa_card is provided
|
||||
CONFIG_LOCATION="/config/config.yaml"
|
||||
|
||||
Reference in New Issue
Block a user