mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-09 06:32:31 +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
|
# 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
|
# 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.
|
# folder. Written to /root/.asoundrc because /etc/asound.conf is read-only.
|
||||||
if [ -f /config/asound.conf ]; then
|
#if [ -f /config/asound.conf ]; then
|
||||||
if [ -r /config/asound.conf ]; then
|
# if [ -r /config/asound.conf ]; then
|
||||||
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
|
# bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
|
||||||
if ! cp /config/asound.conf /root/.asoundrc; then
|
# if ! cp /config/asound.conf /root/.asoundrc; then
|
||||||
bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /root/.asoundrc defaults"
|
# bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /root/.asoundrc defaults"
|
||||||
fi
|
# fi
|
||||||
else
|
# else
|
||||||
bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /root/.asoundrc defaults"
|
# bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /root/.asoundrc defaults"
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Check if alsa_card is provided
|
# Check if alsa_card is provided
|
||||||
CONFIG_LOCATION="/config/config.yaml"
|
CONFIG_LOCATION="/config/config.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user