Copy shared library using install -D

/usr/lib/arm-linux-gnueabihf/alsa-lib/ might not exist
This commit is contained in:
Lance Chen 2017-10-24 21:42:24 +08:00
parent 3fed3fdc8a
commit 8094f7c3ab
No known key found for this signature in database
GPG key ID: BD3F87DB6A0C53E2

View file

@ -55,7 +55,7 @@ if [ ! -f "/boot/overlays/seeed-4mic-voicecard.dtbo" ] && [ ! -f "/lib/modules/$
install_module "./" "seeed-voicecard"
cp seeed-2mic-voicecard.dtbo /boot/overlays
cp seeed-4mic-voicecard.dtbo /boot/overlays
cp ac108_plugin/libasound_module_pcm_ac108.so /usr/lib/arm-linux-gnueabihf/alsa-lib/
install -D ac108_plugin/libasound_module_pcm_ac108.so /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_ac108.so
else
echo "card driver already installed"
fi