This commit is contained in:
Ray Ozzie 2016-12-14 09:51:33 -05:00
parent 3b57ecd50d
commit f91f6dd837

8
run.sh
View File

@ -231,6 +231,14 @@ elif [[ $GW_TYPE == "risinghf" ]]; then
sleep 0.1 sleep 0.1
gpio -1 write 13 0 gpio -1 write 13 0
sleep 0.1 sleep 0.1
elif [[ $GW_TYPE == "custom" ]]; then
gpio -1 mode $CUSTOM_RESET_PIN out
gpio -1 write $CUSTOM_RESET_PIN 0
sleep 0.1
gpio -1 write $CUSTOM_RESET_PIN 1
sleep 0.1
gpio -1 write $CUSTOM_RESET_PIN 0
sleep 0.1
else else
echo "ERROR: unrecognized GW_TYPE=$GW_TYPE" echo "ERROR: unrecognized GW_TYPE=$GW_TYPE"
echo "See https://github.com/rayozzie/ttn-resin-gateway-rpi/blob/master/README.md" echo "See https://github.com/rayozzie/ttn-resin-gateway-rpi/blob/master/README.md"