Update install.sh
This commit is contained in:
parent
bd7623e9fb
commit
d840f77541
1 changed files with 1 additions and 5 deletions
|
@ -130,7 +130,7 @@ base_ver=$(get_kernel_version)
|
||||||
base_ver=${base_ver%%[-+]*}
|
base_ver=${base_ver%%[-+]*}
|
||||||
#kernels="${base_ver}+ ${base_ver}-v7+ ${base_ver}-v7l+"
|
#kernels="${base_ver}+ ${base_ver}-v7+ ${base_ver}-v7l+"
|
||||||
kernels=$(uname -r)
|
kernels=$(uname -r)
|
||||||
kernel_base_ver=${kernels%[-+]*}
|
kernel_base_ver=${kernels%%[-+]*}
|
||||||
|
|
||||||
if [[ "$base_ver" != "$kernel_base_ver" ]] ; then
|
if [[ "$base_ver" != "$kernel_base_ver" ]] ; then
|
||||||
echo "------------------------------------------------------"
|
echo "------------------------------------------------------"
|
||||||
|
@ -169,12 +169,8 @@ function install_module {
|
||||||
mkdir -p /var/lib/dkms/$mod/$ver/$marker
|
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_module "./" "seeed-voicecard"
|
||||||
|
|
||||||
|
|
||||||
# install dtbos
|
# install dtbos
|
||||||
cp seeed-2mic-voicecard.dtbo $OVERLAYS
|
cp seeed-2mic-voicecard.dtbo $OVERLAYS
|
||||||
cp seeed-4mic-voicecard.dtbo $OVERLAYS
|
cp seeed-4mic-voicecard.dtbo $OVERLAYS
|
||||||
|
|
Loading…
Reference in a new issue