10 lines
247 B
Bash
Executable File
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 |