From 51fbe557f356fabc532febf7eb27edeceabede68 Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Fri, 22 Sep 2017 18:12:17 +0800 Subject: [PATCH] fix cannt get uname_r --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 193e585..d81cce0 100755 --- a/install.sh +++ b/install.sh @@ -51,7 +51,7 @@ function install_module { mkdir -p /var/lib/dkms/$mod/$ver/$marker } -if [ ! -f "/boot/overlays/seeed-4mic-voicecard.dtbo" ] && [ ! -f "/lib/modules/$(uname_r)/kernel/sound/soc/codecs/snd-soc-ac108.ko" ] ; then +if [ ! -f "/boot/overlays/seeed-4mic-voicecard.dtbo" ] && [ ! -f "/lib/modules/${uname_r}/kernel/sound/soc/codecs/snd-soc-ac108.ko" ] ; then install_module "./" "seeed-voicecard" cp seeed-2mic-voicecard.dtbo /boot/overlays cp seeed-4mic-voicecard.dtbo /boot/overlays