mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
Allow specifying an alternate config file URL on the commandline.
Change-Id: I1b73674c769027cb557b37d3533534f261521106 BUG=chromium-os:781 TEST=manual Try running recovery.sh with no args. It should try to download the config file from a default location (which may not actually exist). Then try running recovery.sh with a URL as a command-line argument. It should fetch the config file from that location instead. Review URL: http://codereview.chromium.org/5529006
This commit is contained in:
@@ -19,8 +19,9 @@ set -eu
|
|||||||
# run again without needing to download a second time.
|
# run again without needing to download a second time.
|
||||||
WORKDIR=/tmp/tmp.crosrec
|
WORKDIR=/tmp/tmp.crosrec
|
||||||
|
|
||||||
# Where do we look for the config file?
|
# Where do we look for the config file? Note that we can override this by just
|
||||||
CONFIGURL='http://www.chromium.org/some/random/place.cfg'
|
# specifying the config file URL on the command line.
|
||||||
|
CONFIGURL="${1:-http://www.chromium.org/some/random/place.cfg}"
|
||||||
|
|
||||||
# What version is this script? It must match the 'recovery_tool_version=' value
|
# What version is this script? It must match the 'recovery_tool_version=' value
|
||||||
# in the config file that we'll download.
|
# in the config file that we'll download.
|
||||||
|
|||||||
Reference in New Issue
Block a user