# HG changeset patch # User Giulio Moro # Date 1466702382 -3600 # Node ID f299f43839596a9ddb1f990926c8455316fad960 # Parent 617da76ae4d98fe7942c0da3df8aa20f2e5e1a64 stricthostchecking is added to each check_board_alive diff -r 617da76ae4d9 -r f299f4383959 scripts/.bela_common --- a/scripts/.bela_common Thu Jun 23 13:28:06 2016 +0100 +++ b/scripts/.bela_common Thu Jun 23 18:19:42 2016 +0100 @@ -36,7 +36,7 @@ check_board_alive(){ printf "Checking the board is up and running at $BBB_ADDRESS..." - ssh -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || { + ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 $BBB_ADDRESS exit && printf "done\n" || { printf "\nERROR: the board does not respond at $BBB_ADDRESS, check that the address is correct and the board is connected.\n"; exit 1; } diff -r 617da76ae4d9 -r f299f4383959 scripts/update_board --- a/scripts/update_board Thu Jun 23 13:28:06 2016 +0100 +++ b/scripts/update_board Thu Jun 23 18:19:42 2016 +0100 @@ -96,11 +96,11 @@ done - +echo $BBB_ADDRESS check_board_alive # Check if destination folder exists # the StrictHostKeyChecking no should prevent the unkown host prompt -ssh -o "StrictHostKeyChecking no" $BBB_ADDRESS [ -d $BBB_BELA_HOME ] && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 +ssh $BBB_ADDRESS [ -d $BBB_BELA_HOME ] && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 # Set the date on the board [ $FULL -eq 1 ] && set_date