From 6d607e697d205e07f83c891dfc5545dcf71a351c Mon Sep 17 00:00:00 2001 From: legop3 Date: Thu, 27 Nov 2025 17:40:01 -0500 Subject: [PATCH] guh --- pi/install_roverd.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pi/install_roverd.sh b/pi/install_roverd.sh index 73472c8b..f222d46e 100755 --- a/pi/install_roverd.sh +++ b/pi/install_roverd.sh @@ -161,6 +161,10 @@ install_audio_support() { log "Adding dtparam=audio=off to $boot_config" echo "dtparam=audio=off" >> "$boot_config" fi + if ! grep -Eq '^\s*dtparam=i2s=on\b' "$boot_config"; then + log "Adding dtparam=i2s=on to $boot_config" + echo "dtparam=i2s=on" >> "$boot_config" + fi if ! grep -Eq '^\s*dtoverlay=googlevoicehat-soundcard\b' "$boot_config"; then local backup="${boot_config}.roverd.$(date +%Y%m%d%H%M%S).bak" cp "$boot_config" "$backup"