Mercurial > hg > beaglert
changeset 328:abd7795dad5d prerelease
relaxed the loop when set_startup.sh -l (added a sleep in there). This way if the file fails to load, the board is still operable, see #1698
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 03 Jun 2016 17:15:56 +0100 |
parents | ccfcf1303f12 |
children | 9a2a5f14b587 |
files | scripts/set_startup.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/set_startup.sh Fri Jun 03 17:09:26 2016 +0100 +++ b/scripts/set_startup.sh Fri Jun 03 17:15:56 2016 +0100 @@ -62,7 +62,7 @@ SCRIPT_PRERUN= SCRIPT_POSTRUN= if [ $RUN_IN_LOOP -ne 0 ] ; then - SCRIPT_PRERUN="bash -c \\\"while true ; do" + SCRIPT_PRERUN="bash -c \\\"while sleep 0.5 ; do" SCRIPT_POSTRUN=" ; done \\\" " fi @@ -73,4 +73,4 @@ echo Running BeagleRT... screen -S BeagleRT -d -m $SCRIPT_PRERUN $BBB_PATH/BeagleRT $COMMAND_ARGS $SCRIPT_POSTRUN\" > $BBB_STARTUP_SCRIPT" -fi \ No newline at end of file +fi