From bb109587c91e45716ceecd12fdbc7817963fd688 Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Sun, 10 Apr 2016 15:23:51 -0400 Subject: [PATCH] got rid of ping --- Dockerfile | 2 +- README.md | 2 +- run.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0703bae..5cb59a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV INITSYSTEM on # Version number of gateway software. # (Incrementing this simply forces Docker to flush its cache # 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 . /opt/ttn-gateway/ diff --git a/README.md b/README.md index 717d7c0..88aae43 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/run.sh b/run.sh index af846f1..a95a75c 100755 --- a/run.sh +++ b/run.sh @@ -9,7 +9,7 @@ fi # 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..." sleep 30 done