Mercurial > hg > beaglert
comparison scripts/update_board @ 514:ce5bb14c21fb prerelease
update_board checks for board active at the beginning. ANY key is good for exiting
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 22 Jun 2016 12:40:28 +0100 |
parents | 116cbb0e2bd4 |
children | 4656f886175e |
comparison
equal
deleted
inserted
replaced
513:485913c58a61 | 514:ce5bb14c21fb |
---|---|
95 shift | 95 shift |
96 done | 96 done |
97 | 97 |
98 | 98 |
99 | 99 |
100 check_board_alive | |
100 # Check if destination folder exists | 101 # Check if destination folder exists |
101 # the StrictHostKeyChecking no should prevent the unkown host prompt | 102 # the StrictHostKeyChecking no should prevent the unkown host prompt |
102 ssh -o "StrictHostKeyChecking no" $BBB_ADDRESS stat $BBB_BELA_HOME &>/dev/null && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 | 103 ssh -o "StrictHostKeyChecking no" $BBB_ADDRESS stat $BBB_BELA_HOME &>/dev/null && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 |
103 # Set the date on the board | 104 # Set the date on the board |
104 [ $FULL -eq 1 ] && set_date | 105 [ $FULL -eq 1 ] && set_date |
207 fi | 208 fi |
208 [ $FULL -eq 1 ] && ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && printf "The board will now run the IDE at startup, but startup of the Bela program has been disabled.\nTo enable it, use the set_startup.sh script.\nTo control the ide use the ide.sh script\n" | 209 [ $FULL -eq 1 ] && ssh $BBB_ADDRESS make -C $BBB_BELA_HOME --no-print-directory idestartup nostartup && printf "The board will now run the IDE at startup, but startup of the Bela program has been disabled.\nTo enable it, use the set_startup.sh script.\nTo control the ide use the ide.sh script\n" |
209 | 210 |
210 [ $ALWAYS_YES -eq 1 ] && printf "\nCore setup complete.\n\n" || { | 211 [ $ALWAYS_YES -eq 1 ] && printf "\nCore setup complete.\n\n" || { |
211 printf '\nSetup complete, press any key to continue . . .\n\n' | 212 printf '\nSetup complete, press any key to continue . . .\n\n' |
212 read | 213 read -n 1 |
213 } | 214 } |