Skip to content

A live bird collage card for your Home Assistant dashboard.

added pulseaudio check in install_alsa()

mcguirepr890423350ebf29
diff --git a/scripts/install_services.sh b/scripts/install_services.sh
index bb829f99..0a3365d5 100755
--- a/scripts/install_services.sh
+++ b/scripts/install_services.sh
@@ -80,7 +80,7 @@ create_necessary_dirs() {
}
install_alsa() {
- echo "Checking for alsa-utils"
+ echo "Checking for alsa-utils and pulseaudio"
if which arecord &> /dev/null ;then
echo "alsa-utils installed"
else
@@ -89,6 +89,14 @@ install_alsa() {
apt install -qqy alsa-utils
echo "alsa-utils installed"
fi
+ if which pulseaudio &> /dev/null;then
+ echo "PulseAudio installed"
+ else
+ echo "Installing pulseaudio"
+ apt -qqq update
+ apt install -qqy pulseaudio
+ echo "PulseAudio installed"
+ fi
}
install_recording_service() {