Mercurial > hg > beaglert
comparison scripts/update_board @ 532:53ce8eac833c prerelease
Merge
author | chnrx <chris.heinrichs@gmail.com> |
---|---|
date | Thu, 23 Jun 2016 20:41:22 +0100 |
parents | fcf36d293458 |
children | c6ccaf53381a |
comparison
equal
deleted
inserted
replaced
531:ddb86944e138 | 532:53ce8eac833c |
---|---|
94 esac | 94 esac |
95 shift | 95 shift |
96 done | 96 done |
97 | 97 |
98 | 98 |
99 | 99 echo $BBB_ADDRESS |
100 check_board_alive | 100 check_board_alive |
101 # Check if destination folder exists | 101 # Check if destination folder exists |
102 # the StrictHostKeyChecking no should prevent the unkown host prompt | 102 # the StrictHostKeyChecking no should prevent the unkown host prompt |
103 ssh -o "StrictHostKeyChecking no" $BBB_ADDRESS [ -d $BBB_BELA_HOME ] && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 | 103 ssh $BBB_ADDRESS [ -d $BBB_BELA_HOME ] && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 |
104 # Set the date on the board | 104 # Set the date on the board |
105 [ $FULL -eq 1 ] && set_date | 105 [ $FULL -eq 1 ] && set_date |
106 | 106 |
107 if [ $DESTINATION_EMPTY -eq 0 ]; | 107 if [ $DESTINATION_EMPTY -eq 0 ]; |
108 then | 108 then |
192 ls $IDE_FOLDER/scripts/update_IDE >/dev/null 2>/dev/null | 192 ls $IDE_FOLDER/scripts/update_IDE >/dev/null 2>/dev/null |
193 if [ $? -eq 0 ] | 193 if [ $? -eq 0 ] |
194 then | 194 then |
195 export BBB_ADDRESS BBB_BELA_HOME | 195 export BBB_ADDRESS BBB_BELA_HOME |
196 cd $IDE_FOLDER/scripts && ./update_IDE $ALWAYS_YES_FLAG --no-frills | 196 cd $IDE_FOLDER/scripts && ./update_IDE $ALWAYS_YES_FLAG --no-frills |
197 | 197 [ $FULL -eq 1 ] && ssh $BBB_ADDRESS "make -C $BBB_BELA_HOME --no-print-directory idestart" |
198 ssh $BBB_ADDRESS "make -C $BBB_BELA_HOME --no-print-directory idestart" | |
199 else | 198 else |
200 # run the IDE | 199 # run the IDE |
201 printf "\nThe Bela core files were updated on the board, but a valid IDE folder was not found in $IDE_FOLDER/, so the IDE was not updated. | 200 printf "\nThe Bela core files were updated on the board, but a valid IDE folder was not found in $IDE_FOLDER/, so the IDE was not updated. |
202 You can get a copy of the most up-to-date IDE files from https://github.com/LBDonovan/bela-ide\n" | 201 You can get a copy of the most up-to-date IDE files from https://github.com/LBDonovan/bela-ide\n" |
203 [ $FULL -eq 1 ] && printf "If there was an older version of the IDE on the board, it is being restarted.\n\n" &&\ | 202 [ $FULL -eq 1 ] && printf "If there was an older version of the IDE on the board, it is being restarted.\n\n" &&\ |