Use local configuration (static-get).

This commit is contained in:
Ivan Davidov 2017-12-04 17:40:36 +02:00
parent 7be3ba8c78
commit 61f80b4f9b
3 changed files with 9 additions and 12 deletions

View File

@ -41,13 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0
# #
#####################################################################
# You can find the latest static-get shell script here:
#
# http://s.minos.io/s
# http://github.com/minos-org/minos-static
#
STATIC_GET_SOURCE_URL=http://s.minos.io/s
# You can find the latest stress archives here:
#
# https://people.seas.harvard.edu/~apw/stress/

View File

@ -0,0 +1,6 @@
# You can find the latest static-get shell script here:
#
# http://s.minos.io/s
# http://github.com/minos-org/minos-static
#
STATIC_GET_URL=http://s.minos.io/s

View File

@ -4,11 +4,9 @@ set -e
. ../../common.sh
# Grab everything after the '=' character.
DOWNLOAD_URL=$(grep -i STATIC_GET_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
# Read the 'USE_LOCAL_SOURCE' property from '.config'
USE_LOCAL_SOURCE="$(grep -i USE_LOCAL_SOURCE $MAIN_SRC_DIR/.config | cut -f2 -d'=')"
# Read the common configuration properties.
DOWNLOAD_URL=`read_property STATIC_GET_URL`
USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE`
if [ "$USE_LOCAL_SOURCE" = "true" -a ! -f $MAIN_SRC_DIR/source/overlay/static-get.sh ] ; then
echo "Shell script $MAIN_SRC_DIR/source/overlay/static-get.sh is missing and will be downloaded."