From 27b6cdf252f752d3b889fdd322adbbe2573e568a Mon Sep 17 00:00:00 2001 From: Pernat1y Date: Sat, 26 Jan 2019 16:01:46 +0200 Subject: [PATCH] Make grep searches more precise --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 9b23560..ea07f59 100755 --- a/install.sh +++ b/install.sh @@ -61,20 +61,20 @@ cp seeed-8mic-voicecard.dtbo /boot/overlays rm -f /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_ac108.so #set kernel moduels -grep -q "snd-soc-seeed-voicecard" /etc/modules || \ +grep -q "^snd-soc-seeed-voicecard$" /etc/modules || \ echo "snd-soc-seeed-voicecard" >> /etc/modules -grep -q "snd-soc-ac108" /etc/modules || \ +grep -q "^snd-soc-ac108$" /etc/modules || \ echo "snd-soc-ac108" >> /etc/modules -grep -q "snd-soc-wm8960" /etc/modules || \ +grep -q "^snd-soc-wm8960$" /etc/modules || \ echo "snd-soc-wm8960" >> /etc/modules #set dtoverlays sed -i -e 's:#dtparam=i2c_arm=on:dtparam=i2c_arm=on:g' /boot/config.txt || true -grep -q "dtoverlay=i2s-mmap" /boot/config.txt || \ +grep -q "^dtoverlay=i2s-mmap$" /boot/config.txt || \ echo "dtoverlay=i2s-mmap" >> /boot/config.txt -grep -q "dtparam=i2s=on" /boot/config.txt || \ +grep -q "^dtparam=i2s=on$" /boot/config.txt || \ echo "dtparam=i2s=on" >> /boot/config.txt #install config files