ttn-resin-gateway-rpi/start.sh~

10 lines
247 B
Bash
Raw Normal View History

2016-03-21 19:36:55 +00:00
#! /bin/bash
# Test the connection, wait if needed.
while [[ $(ping -c1 google.com 2>&1 | grep " 0% packet loss") == "" ]]; do
echo "[TTN Gateway]: Waiting for internet connection..."
sleep 30
done
# Fire up the forwarder.
./poly_pkt_fwd