From 77fe6ab6d416421d344bad4f457146565df77f46 Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Thu, 26 Nov 2020 02:09:42 +0300 Subject: [PATCH] fixed viringpi issue --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index 566b75b..f3d61fe 100755 --- a/install.sh +++ b/install.sh @@ -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