From 2b2f9079bb136aa6ecd9174807898d9e5997132d Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Sun, 10 Apr 2016 16:32:36 -0400 Subject: [PATCH] apt-get update during build phase --- dev/build.sh | 5 +++++ run.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dev/build.sh b/dev/build.sh index 7b9d5cb..3b3f827 100755 --- a/dev/build.sh +++ b/dev/build.sh @@ -6,6 +6,11 @@ set -e echo "The Things Network RPi + IC880A Gateway Builder/Installer" echo "" +# Make sure that we're able to do apt-get's quickly at runtime +# to install necessary tools. Tough to pay the price here, +# but it's still better here than at device startup. +apt-get update + # Build in a temp folder that we'll completely purge after build, # and install into the linux folder where apps reside. diff --git a/run.sh b/run.sh index f76c8f0..a573c62 100755 --- a/run.sh +++ b/run.sh @@ -149,7 +149,7 @@ echo -e "{\n\ # Set gateway_ID in local_conf.json to the gateway's MAC address echo "******************" -apt-get update && apt-get install iproute +apt-get install iproute ./set-gateway-id.sh start ./local_conf.json echo "******************" echo ""