mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Implement audio_card configuration check
Add check for audio_card configuration in 99-run.sh
This commit is contained in:
@@ -10,6 +10,11 @@ echo " "
|
||||
|
||||
# Check if alsa_card is provided
|
||||
CONFIG_LOCATION="/config/config.yaml"
|
||||
if bashio::config.has_value "audio_card"; then
|
||||
audio_card=$(bashio::config 'audio_card')
|
||||
bashio::log.info "Audio card set to ${audio_card}. Please only Please ensure it is the correct card"
|
||||
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
|
||||
fi
|
||||
|
||||
########################
|
||||
# CONFIGURE birdnet-go #
|
||||
|
||||
Reference in New Issue
Block a user