Mercurial > hg > beaglert
changeset 527:1c68ad13bbe4 API-update
stricthostchecking is added to each check_board_alive
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 23 Jun 2016 18:15:26 +0100 |
parents | 617da76ae4d9 |
children | 5c8f46fcd4d0 |
files | scripts/.bela_common scripts/update_board |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/.bela_common Thu Jun 23 13:28:06 2016 +0100 +++ b/scripts/.bela_common Thu Jun 23 18:15:26 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; }
--- a/scripts/update_board Thu Jun 23 13:28:06 2016 +0100 +++ b/scripts/update_board Thu Jun 23 18:15:26 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