English correction
This commit is contained in:
parent
c0f1dfa8bb
commit
19d1e6eb88
1 changed files with 11 additions and 11 deletions
22
install.sh
22
install.sh
|
@ -8,7 +8,7 @@ if [[ $EUID -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for enough space on /boot volume
|
# Check if enough space on /boot volume
|
||||||
boot_line=$(df -h | grep /boot | head -n 1)
|
boot_line=$(df -h | grep /boot | head -n 1)
|
||||||
if [ "x${boot_line}" = "x" ]; then
|
if [ "x${boot_line}" = "x" ]; then
|
||||||
echo "Warning: /boot volume not found .."
|
echo "Warning: /boot volume not found .."
|
||||||
|
@ -80,10 +80,10 @@ function check_kernel_headers() {
|
||||||
|
|
||||||
# echo RUN=$VER_RUN HDR=$VER_HDR
|
# echo RUN=$VER_RUN HDR=$VER_HDR
|
||||||
echo " !!! Your kernel version is $VER_RUN"
|
echo " !!! Your kernel version is $VER_RUN"
|
||||||
echo " Not found *** coressponding *** kernel headers with apt-get."
|
echo " Couldn't find *** corresponding *** kernel headers with apt-get."
|
||||||
echo " This may occur if you have ran 'rpi-update'."
|
echo " This may happen if you ran 'rpi-update'."
|
||||||
echo " Choose *** y *** will revert the kernel to version $VER_HDR then continue."
|
echo " Choose *** y *** to revert the kernel to version $VER_HDR and continue."
|
||||||
echo " Choose *** N *** will exit without this driver support, by default."
|
echo " Choose *** N *** to exit without this driver support, by default."
|
||||||
read -p "Would you like to proceed? (y/N)" -n 1 -r -s
|
read -p "Would you like to proceed? (y/N)" -n 1 -r -s
|
||||||
echo
|
echo
|
||||||
if ! [[ $REPLY =~ ^[Yy]$ ]]; then
|
if ! [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
|
@ -117,7 +117,7 @@ fi
|
||||||
function install_kernel() {
|
function install_kernel() {
|
||||||
local _url _prefix
|
local _url _prefix
|
||||||
|
|
||||||
# Instead of retriving the lastest kernel & headers
|
# Instead of retrieving the lastest kernel & headers
|
||||||
[ "X$FORCE_KERNEL" == "X" ] && {
|
[ "X$FORCE_KERNEL" == "X" ] && {
|
||||||
apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel
|
apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel
|
||||||
} || {
|
} || {
|
||||||
|
@ -177,8 +177,8 @@ function install_module {
|
||||||
dkms build -k $_i -m $mod -v $ver && {
|
dkms build -k $_i -m $mod -v $ver && {
|
||||||
dkms install --force -k $_i -m $mod -v $ver
|
dkms install --force -k $_i -m $mod -v $ver
|
||||||
} || {
|
} || {
|
||||||
echo "can not compile with this kernel, abort"
|
echo "Can't compile with this kernel, aborting"
|
||||||
echo "please try compile with the option --compat-kernel"
|
echo "Please try to compile with the option --compat-kernel"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
@ -194,8 +194,8 @@ cp seeed-2mic-voicecard.dtbo /boot/overlays
|
||||||
cp seeed-4mic-voicecard.dtbo /boot/overlays
|
cp seeed-4mic-voicecard.dtbo /boot/overlays
|
||||||
cp seeed-8mic-voicecard.dtbo /boot/overlays
|
cp seeed-8mic-voicecard.dtbo /boot/overlays
|
||||||
|
|
||||||
#install alsa plugins
|
# install alsa plugins
|
||||||
# no need this plugin now
|
# we don't need this plugin now
|
||||||
# install -D 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/
|
||||||
rm -f /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_ac108.so
|
rm -f /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_ac108.so
|
||||||
|
|
||||||
|
@ -242,6 +242,6 @@ systemctl enable seeed-voicecard.service
|
||||||
systemctl start seeed-voicecard
|
systemctl start seeed-voicecard
|
||||||
|
|
||||||
echo "------------------------------------------------------"
|
echo "------------------------------------------------------"
|
||||||
echo "Please reboot your raspberry pi to apply all settings"
|
echo "Please reboot your device to apply all settings"
|
||||||
echo "Enjoy!"
|
echo "Enjoy!"
|
||||||
echo "------------------------------------------------------"
|
echo "------------------------------------------------------"
|
||||||
|
|
Loading…
Reference in a new issue