Update install.sh (#182) to --force-yes install

This commit is contained in:
SamhithPottem 2019-10-23 08:46:55 +05:30 committed by turmary
parent ae32476755
commit 873580cfd5

View file

@ -91,7 +91,7 @@ function install_kernel() {
# Instead of retriving the lastest kernel & headers
[ "X$FORCE_KERNEL" == "X" ] && {
apt-get -y install raspberrypi-kernel-headers raspberrypi-kernel
apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel
} || {
# We would like to a fixed version
KERN_NAME=raspberrypi-kernel_${FORCE_KERNEL}_armhf.deb
@ -108,7 +108,6 @@ function install_kernel() {
which apt &>/dev/null
if [[ $? -eq 0 ]]; then
apt update -y
apt-get -y install dkms git i2c-tools libasound2-plugins
install_kernel
# rpi-update checker