fix cannt get uname_r
This commit is contained in:
parent
41fbb892b9
commit
51fbe557f3
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ function install_module {
|
||||||
|
|
||||||
mkdir -p /var/lib/dkms/$mod/$ver/$marker
|
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"
|
install_module "./" "seeed-voicecard"
|
||||||
cp seeed-2mic-voicecard.dtbo /boot/overlays
|
cp seeed-2mic-voicecard.dtbo /boot/overlays
|
||||||
cp seeed-4mic-voicecard.dtbo /boot/overlays
|
cp seeed-4mic-voicecard.dtbo /boot/overlays
|
||||||
|
|
Loading…
Reference in a new issue