added pulseaudio check in install_alsa()

This commit is contained in:
mcguirepr89
2021-10-01 13:44:32 -04:00
committed by GitHub
parent cdaf0c65d4
commit 0423350ebf
+9 -1
View File
@@ -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() {