Mercurial > hg > beaglert
comparison scripts/.bela_common @ 515:03b511d99f3d prerelease
bela_common was left out of the previous commit
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 22 Jun 2016 13:22:31 +0100 |
parents | 86591d203c78 |
children | 7eb66c7898cb |
comparison
equal
deleted
inserted
replaced
514:ce5bb14c21fb | 515:03b511d99f3d |
---|---|
28 | 28 |
29 set_date(){ | 29 set_date(){ |
30 # an optional parameter will be executed as part of the same ssh session | 30 # an optional parameter will be executed as part of the same ssh session |
31 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %Z'`\" > /dev/null; $1" | 31 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %Z'`\" > /dev/null; $1" |
32 } | 32 } |
33 | |
34 check_board_alive(){ | |
35 printf "Checking the board is up and running at $BBB_ADDRESS..." | |
36 ssh -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || { | |
37 printf "\nERROR: the board does not respond at $BBB_ADDRESS, check that the address is correct and the board is connected.\n"; | |
38 exit 1; | |
39 } | |
40 } |