mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-24 11:54:54 +00:00
fixed viringpi issue
This commit is contained in:
parent
76fe62a862
commit
77fe6ab6d4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user