ttn-resin-gateway-rpi/start.sh~
2016-03-21 12:36:55 -07:00

10 lines
247 B
Bash
Executable File

#! /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