summaryrefslogtreecommitdiff
path: root/start-container-none.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-01-31 21:21:11 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-01-31 21:21:11 +0000
commitb3a5ec886f9048ce6f0bb66a450eefcba3e79724 (patch)
treeab37006c14e5da27896883e6f4e34d57414932fc /start-container-none.sh
parentabe5c9cd42e8b5eae72f465be4aa00d2bb21697a (diff)
start-container-*.sh: Support optional host parameter.
This is currently used to force the local hostname in case it does not match the public hostname. Change-Id: I3efefe8438f7bdfabbe518885b3806f893c18bc8
Diffstat (limited to 'start-container-none.sh')
-rwxr-xr-xstart-container-none.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/start-container-none.sh b/start-container-none.sh
index e8f4a0e1..7ebc2365 100755
--- a/start-container-none.sh
+++ b/start-container-none.sh
@@ -14,10 +14,11 @@ set -e
# - definition of ${session_host} and ${session_port}, can be used for
# a remote connexion to the container
-if [ $# -ne 2 ]; then
- echo Usage: $0 arch flavour
+if [ $# -ne 2 -a $# -ne 3 ]; then
+ echo Usage: $0 arch flavour [host]
echo " arch: architecture (eg: amd64, i386, arm64, armhf)"
echo " flavour: distribution (eg: trusty)"
+ echo " host: hostname where the container will run, defaults to localhost"
exit 1
fi