Mercurial > hg > beaglert
comparison scripts/.bela_common @ 518:c774bd8ad108 prerelease
Set date works on windows
author | oromoiluig <giuliomoro@yahoo.it> |
---|---|
date | Wed, 22 Jun 2016 17:51:52 +0100 |
parents | 7eb66c7898cb |
children | 42f6af3a5f1d |
comparison
equal
deleted
inserted
replaced
517:4656f886175e | 518:c774bd8ad108 |
---|---|
28 done | 28 done |
29 } | 29 } |
30 | 30 |
31 set_date(){ | 31 set_date(){ |
32 # an optional parameter will be executed as part of the same ssh session | 32 # an optional parameter will be executed as part of the same ssh session |
33 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %Z'`\" > /dev/null; $1" | 33 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %z'`\" > /dev/null; $1" |
34 } | 34 } |
35 | 35 |
36 check_board_alive(){ | 36 check_board_alive(){ |
37 printf "Checking the board is up and running at $BBB_ADDRESS..." | 37 printf "Checking the board is up and running at $BBB_ADDRESS..." |
38 ssh -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || { | 38 ssh -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || { |