From 9a97f5033f450cb33894a4d5bedfca78607119db Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Thu, 14 Sep 2017 20:03:17 +0800 Subject: [PATCH] change some dtparam to dtoverlay --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 39e067c..c74ecf3 100755 --- a/install.sh +++ b/install.sh @@ -80,19 +80,19 @@ case "${card}" in "2mic") cp wm8960_asound.state /var/lib/alsa/asound.state if [ "x${has_4mic}" != x ] ; then - sed -i "s/dtparam=seeed-4mic-voicecard//g" /boot/config.txt + sed -i "s/dtoverlay=seeed-4mic-voicecard//g" /boot/config.txt fi - grep -q "dtparam=seeed-2mic-voicecard" /boot/config.txt || \ - echo "dtparam=seeed-2mic-voicecard" >> /boot/config.txt + grep -q "dtoverlay=seeed-2mic-voicecard" /boot/config.txt || \ + echo "dtoverlay=seeed-2mic-voicecard" >> /boot/config.txt ;; "4mic") cp ac108_asound.state /var/lib/alsa/asound.state if [ "x${has_2mic}" != x ] ; then - sed -i "s/dtparam=seeed-2mic-voicecard//g" /boot/config.txt + sed -i "s/dtoverlay=seeed-2mic-voicecard//g" /boot/config.txt fi - grep -q "dtparam=seeed-4mic-voicecard" /boot/config.txt || \ - echo "dtparam=seeed-4mic-voicecard" >> /boot/config.txt + grep -q "dtoverlay=seeed-4mic-voicecard" /boot/config.txt || \ + echo "dtoverlay=seeed-4mic-voicecard" >> /boot/config.txt ;; *) echo "Please use 2mic or 4mic"