comparison scripts/.bela_common @ 529:f299f4383959 prerelease

stricthostchecking is added to each check_board_alive
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 23 Jun 2016 18:19:42 +0100
parents 1ca196e35105
children
comparison
equal deleted inserted replaced
526:617da76ae4d9 529:f299f4383959
34 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %z'`\" > /dev/null; $1" 34 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %z'`\" > /dev/null; $1"
35 } 35 }
36 36
37 check_board_alive(){ 37 check_board_alive(){
38 printf "Checking the board is up and running at $BBB_ADDRESS..." 38 printf "Checking the board is up and running at $BBB_ADDRESS..."
39 ssh -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || { 39 ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || {
40 printf "\nERROR: the board does not respond at $BBB_ADDRESS, check that the address is correct and the board is connected.\n"; 40 printf "\nERROR: the board does not respond at $BBB_ADDRESS, check that the address is correct and the board is connected.\n";
41 exit 1; 41 exit 1;
42 } 42 }
43 } 43 }
44 44