fixed viringpi issue

This commit is contained in:
Yasin Kaya 2020-11-26 02:09:42 +03:00
parent 76fe62a862
commit 77fe6ab6d4
1 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,14 @@ colored_echo "ppp and wiringpi (gpio tool) installing..."
apt-get install ppp wiringpi -y
if [[ $? -ne 0 ]]; then colored_echo "Process failed" ${RED}; exit 1; fi
# test wiringpi and fix if there is any issue
gpio readall | grep Oops > /dev/null
if [[ $? -ne 1 ]]; then
colored_echo "Known wiringpi issue is detected! Wiringpi is updating..."
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
fi
colored_echo "What is your carrier APN?"
read carrierapn