File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed
Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ dirName="$(basename `pwd`)"
1212# Functions
1313# --------------------------------------------------------------------------
1414
15- setTitle () {
16- echo -e " \033]0;$@ \007"
17- }
18-
1915Check ()
2016{
2117
10399
104100DispOpt ()
105101{
102+ clear
103+
104+ echo " Your network info: $hostName @$userIP "
106105 echo " "
107106 echo " Type 'exit' to quit"
108107
171170
172171clear
173172
174- echo " Your network info: $hostName @$userIP "
175-
176173# check OPTION given
177174# ------------------------------------------------------------
178175
@@ -204,7 +201,6 @@ if [ $OPTION == "-G" ]; then
204201 Check
205202 PullGit_Pack
206203
207-
208204 while(true); do
209205 read -p " Rover Name/IP To Start: " roverIP
210206 if [ " $roverIP " = " exit" ]; then
@@ -228,15 +224,13 @@ if [ $OPTION == "-G" ]; then
228224
229225 # If rover is on the network
230226 ping -q -w2 $roverIP > /dev/null
231-
232227 if [ $? -eq 0 ]; then
233228
234229 SuccessPing
235230
236231 # Transfer/Unpack/Run
237232 Transfer
238233 Unpack_Run
239-
240234 sleep 10
241235
242236 # if not on the network
@@ -282,31 +276,26 @@ if [ $OPTION == "-L" ]; then
282276
283277 # If rover is on the network
284278 ping -q -w2 $roverIP > /dev/null
285-
286279 if [ $? -eq 0 ]; then
287280
288281 SuccessPing
289282
290283 # Transfer/Unpack/Run
291284 Transfer
292285 Unpack_Run
293-
294286 sleep 10
295287
296288 # if not on the network
297289 else
298290 FailPing
299291 fi
300-
301292 done
302-
303293fi
304294
305295# Just Run
306296# -------------------------------------------------------------
307297if [ $OPTION == " -R" ]; then
308298
309-
310299 DispOpt
311300
312301 echo " Running current swarmie(s) code"
@@ -334,17 +323,13 @@ if [ $OPTION == "-R" ]; then
334323 if [ $? -eq 0 ]; then
335324
336325 SuccessPing
337-
338- # Run Rover Script
339326 Run
340-
341327 sleep 10
342328
343329 # if not on the network
344- else
330+ else
345331 FailPing
346332 fi
347-
348333 done
349334fi
350335
You can’t perform that action at this time.
0 commit comments