From d840f77541f9f1ff64097a2aec274d549d6e8a23 Mon Sep 17 00:00:00 2001 From: AIWintermuteAI <32562299+AIWintermuteAI@users.noreply.github.com> Date: Thu, 19 Aug 2021 09:56:53 +0800 Subject: [PATCH] Update install.sh --- install.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 2cc8a41..a8f3279 100755 --- a/install.sh +++ b/install.sh @@ -130,7 +130,7 @@ base_ver=$(get_kernel_version) base_ver=${base_ver%%[-+]*} #kernels="${base_ver}+ ${base_ver}-v7+ ${base_ver}-v7l+" kernels=$(uname -r) -kernel_base_ver=${kernels%[-+]*} +kernel_base_ver=${kernels%%[-+]*} if [[ "$base_ver" != "$kernel_base_ver" ]] ; then echo "------------------------------------------------------" @@ -169,12 +169,8 @@ function install_module { mkdir -p /var/lib/dkms/$mod/$ver/$marker } -#because https://github.com/raspberrypi/linux/commit/14075fb3b561869c760a096a92ca0fab1f573174, remove snd-soc-wm8960.ko first -#find /lib/modules -name "snd-soc-wm8960.ko" -exec rm -rf {} \; - install_module "./" "seeed-voicecard" - # install dtbos cp seeed-2mic-voicecard.dtbo $OVERLAYS cp seeed-4mic-voicecard.dtbo $OVERLAYS