Mercurial > hg > beaglert
comparison scripts/.bela_common @ 520:45ddfcd0e417 prerelease
Merge
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 22 Jun 2016 21:39:37 +0100 |
parents | c774bd8ad108 |
children | 42f6af3a5f1d |
comparison
equal
deleted
inserted
replaced
519:5406a719910b | 520:45ddfcd0e417 |
---|---|
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" || { |