From f91f6dd837e8ca81e9792a3ed03e1dab411e7ba5 Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Wed, 14 Dec 2016 09:51:33 -0500 Subject: [PATCH] m --- run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run.sh b/run.sh index fba2a25..004a3ec 100755 --- a/run.sh +++ b/run.sh @@ -231,6 +231,14 @@ elif [[ $GW_TYPE == "risinghf" ]]; then sleep 0.1 gpio -1 write 13 0 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 echo "ERROR: unrecognized GW_TYPE=$GW_TYPE" echo "See https://github.com/rayozzie/ttn-resin-gateway-rpi/blob/master/README.md"