Explorar el Código

Client mesh install is optional

Bob Mottram hace 8 años
padre
commit
03e7d379c7
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  1. 10
    3
      src/freedombone-client

+ 10
- 3
src/freedombone-client Ver fichero

@@ -32,6 +32,7 @@ export TEXTDOMAIN=${PROJECT_NAME}-client
32 32
 export TEXTDOMAINDIR="/usr/share/locale"
33 33
 
34 34
 CURR_USER=$USER
35
+MESH_CLIENT_INSTALL=
35 36
 
36 37
 # Version number of this script
37 38
 VERSION="1.01"
@@ -102,7 +103,7 @@ function configure_monkeysphere {
102 103
 
103 104
 function show_help {
104 105
 	echo ''
105
-	echo $"${PROJECT_NAME}-client"
106
+	echo $"${PROJECT_NAME}-client --mesh [yes|no]"
106 107
 	echo ''
107 108
 	exit 0
108 109
 }
@@ -123,6 +124,10 @@ do
123 124
 			shift
124 125
 			WIFI_CHANNEL=${1}
125 126
 			;;
127
+		--mesh)
128
+			shift
129
+			MESH_CLIENT_INSTALL=${1}
130
+			;;
126 131
 		*)
127 132
 			# unknown option
128 133
 			;;
@@ -133,7 +138,9 @@ done
133 138
 echo $'Configuring client'
134 139
 configure_ssh_client
135 140
 configure_monkeysphere
136
-${PROJECT_NAME}-mesh-install batman_client
137
-${PROJECT_NAME}-mesh-install babel_client
141
+if [[ $MESH_CLIENT_INSTALL == $'yes' || $MESH_CLIENT_INSTALL == $'y' || $MESH_CLIENT_INSTALL == $'on' ]]; then
142
+	${PROJECT_NAME}-mesh-install batman_client
143
+	${PROJECT_NAME}-mesh-install babel_client
144
+fi
138 145
 echo $'Configuration complete'
139 146
 exit 0