apt-get update during build phase

This commit is contained in:
Ray Ozzie 2016-04-10 16:32:36 -04:00
parent 327fc3b8b9
commit 2b2f9079bb
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@ set -e
echo "The Things Network RPi + IC880A Gateway Builder/Installer" echo "The Things Network RPi + IC880A Gateway Builder/Installer"
echo "" 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, # Build in a temp folder that we'll completely purge after build,
# and install into the linux folder where apps reside. # and install into the linux folder where apps reside.

2
run.sh
View File

@ -149,7 +149,7 @@ echo -e "{\n\
# Set gateway_ID in local_conf.json to the gateway's MAC address # Set gateway_ID in local_conf.json to the gateway's MAC address
echo "******************" echo "******************"
apt-get update && apt-get install iproute apt-get install iproute
./set-gateway-id.sh start ./local_conf.json ./set-gateway-id.sh start ./local_conf.json
echo "******************" echo "******************"
echo "" echo ""