Client mesh install is optional

This commit is contained in:
Bob Mottram 2016-04-30 10:08:19 +01:00
parent a77f47f404
commit 03e7d379c7
1 changed files with 10 additions and 3 deletions

View File

@ -32,6 +32,7 @@ export TEXTDOMAIN=${PROJECT_NAME}-client
export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAINDIR="/usr/share/locale"
CURR_USER=$USER CURR_USER=$USER
MESH_CLIENT_INSTALL=
# Version number of this script # Version number of this script
VERSION="1.01" VERSION="1.01"
@ -102,7 +103,7 @@ function configure_monkeysphere {
function show_help { function show_help {
echo '' echo ''
echo $"${PROJECT_NAME}-client" echo $"${PROJECT_NAME}-client --mesh [yes|no]"
echo '' echo ''
exit 0 exit 0
} }
@ -123,6 +124,10 @@ do
shift shift
WIFI_CHANNEL=${1} WIFI_CHANNEL=${1}
;; ;;
--mesh)
shift
MESH_CLIENT_INSTALL=${1}
;;
*) *)
# unknown option # unknown option
;; ;;
@ -133,7 +138,9 @@ done
echo $'Configuring client' echo $'Configuring client'
configure_ssh_client configure_ssh_client
configure_monkeysphere configure_monkeysphere
if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
${PROJECT_NAME}-mesh-install batman_client ${PROJECT_NAME}-mesh-install batman_client
${PROJECT_NAME}-mesh-install babel_client ${PROJECT_NAME}-mesh-install babel_client
fi
echo $'Configuration complete' echo $'Configuration complete'
exit 0 exit 0