diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-01-31 21:21:11 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2017-01-31 21:21:11 +0000 |
commit | b3a5ec886f9048ce6f0bb66a450eefcba3e79724 (patch) | |
tree | ab37006c14e5da27896883e6f4e34d57414932fc /start-container-none.sh | |
parent | abe5c9cd42e8b5eae72f465be4aa00d2bb21697a (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-x | start-container-none.sh | 5 |
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 |