From 628af6a43c4240a793f8d3524f021264c74da41f Mon Sep 17 00:00:00 2001 From: AIWintermuteAI <32562299+AIWintermuteAI@users.noreply.github.com> Date: Sat, 30 Mar 2024 04:36:04 +0800 Subject: [PATCH] Update install.sh to support Raspberry Pi 5 --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4d9beeb..5da2bf4 100755 --- a/install.sh +++ b/install.sh @@ -188,10 +188,12 @@ sed -i -e 's:#dtparam=i2c_arm=on:dtparam=i2c_arm=on:g' $CONFIG || true grep -q "^dtoverlay=i2s-mmap$" $CONFIG || \ echo "dtoverlay=i2s-mmap" >> $CONFIG - grep -q "^dtparam=i2s=on$" $CONFIG || \ echo "dtparam=i2s=on" >> $CONFIG +grep -q "^dtoverlay=seeed-2mic-voicecard$" $CONFIG || \ + echo "dtoverlay=seeed-2mic-voicecard" >> $CONFIG + #install config files mkdir /etc/voicecard || true cp *.conf /etc/voicecard