diff --git a/ppp_installer/install.sh b/ppp_installer/install.sh index c83d52d..a92ddd8 100755 --- a/ppp_installer/install.sh +++ b/ppp_installer/install.sh @@ -20,7 +20,7 @@ case $answer in *) echo "${YELLOW}You did not chose 1, 2,3 or 4${SET}"; exit 1; 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}1: GPRS/EDGE${SET}" echo "${YELLOW}2: CATM1${SET}" diff --git a/ppp_installer/reconnect_cellulariot b/ppp_installer/reconnect_cellulariot index 96737f4..6c46174 100644 --- a/ppp_installer/reconnect_cellulariot +++ b/ppp_installer/reconnect_cellulariot @@ -10,10 +10,10 @@ gpio -g write 17 0 while true; do - if [ $(gpio -g read 23) = "0" ]; then + if [ $(gpio -g read 23) = "1" ]; then echo "Power up" - gpio -g write 24 0 + #gpio -g write 24 0 gpio -g write 24 1 sleep 2 gpio -g write 24 0