mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-22 11:04:54 +00:00
fixed reconnect code for new HAT
This commit is contained in:
parent
f7782d7b2b
commit
e19160d5fa
@ -20,7 +20,7 @@ case $answer in
|
|||||||
*) echo "${YELLOW}You did not chose 1, 2,3 or 4${SET}"; exit 1;
|
*) echo "${YELLOW}You did not chose 1, 2,3 or 4${SET}"; exit 1;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $answer -eq 3 || $answer -eq 4 ]; then
|
if [ $answer -eq 3 ] || [ $answer -eq 4 ]; then
|
||||||
echo "${YELLOW}Please choose LTE Technology:${SET}"
|
echo "${YELLOW}Please choose LTE Technology:${SET}"
|
||||||
echo "${YELLOW}1: GPRS/EDGE${SET}"
|
echo "${YELLOW}1: GPRS/EDGE${SET}"
|
||||||
echo "${YELLOW}2: CATM1${SET}"
|
echo "${YELLOW}2: CATM1${SET}"
|
||||||
|
@ -10,10 +10,10 @@ gpio -g write 17 0
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
if [ $(gpio -g read 23) = "0" ]; then
|
if [ $(gpio -g read 23) = "1" ]; then
|
||||||
echo "Power up"
|
echo "Power up"
|
||||||
|
|
||||||
gpio -g write 24 0
|
#gpio -g write 24 0
|
||||||
gpio -g write 24 1
|
gpio -g write 24 1
|
||||||
sleep 2
|
sleep 2
|
||||||
gpio -g write 24 0
|
gpio -g write 24 0
|
||||||
|
Loading…
Reference in New Issue
Block a user