got rid of ping

This commit is contained in:
Ray Ozzie 2016-04-10 15:23:51 -04:00
parent b8288da4a8
commit bb109587c9
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ENV INITSYSTEM on
# Version number of gateway software. # Version number of gateway software.
# (Incrementing this simply forces Docker to flush its cache # (Incrementing this simply forces Docker to flush its cache
# and thus forces a full rebuild. Not used outside of Dockerfile.) # and thus forces a full rebuild. Not used outside of Dockerfile.)
ENV TTN_GATEWAY_SOFTWARE 48 ENV TTN_GATEWAY_SOFTWARE 50
# Copy the build and run environment # Copy the build and run environment
COPY . /opt/ttn-gateway/ COPY . /opt/ttn-gateway/

View File

@ -1,4 +1,4 @@
# TTN Gateway for Raspberry Pi + IMST iC880A SPI # TTN Gateway for Raspberry Pi
Resin Dockerfile & scripts for [The Things Network](http://thethingsnetwork.org/) gateways based on the iC880a concentrator with a Raspberry Pi host, connected using SPI. Resin Dockerfile & scripts for [The Things Network](http://thethingsnetwork.org/) gateways based on the iC880a concentrator with a Raspberry Pi host, connected using SPI.

2
run.sh
View File

@ -9,7 +9,7 @@ fi
# We need to be online, wait if needed. # We need to be online, wait if needed.
while [[ $(ping -c1 google.com 2>&1 | grep " 0% packet loss") == "" ]]; do until $(curl --output /dev/null --silent --head --fail http://www.google.com); do
echo "[TTN Gateway]: Waiting for internet connection..." echo "[TTN Gateway]: Waiting for internet connection..."
sleep 30 sleep 30
done done