Mercurial > hg > beaglert
comparison scripts/set_startup.sh @ 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 | a11e23f4e6af |
children | 6e428d6b57ef |
comparison
equal
deleted
inserted
replaced
327:ccfcf1303f12 | 328:abd7795dad5d |
---|---|
60 echo "Enabling BeagleRT at startup..." | 60 echo "Enabling BeagleRT at startup..." |
61 | 61 |
62 SCRIPT_PRERUN= | 62 SCRIPT_PRERUN= |
63 SCRIPT_POSTRUN= | 63 SCRIPT_POSTRUN= |
64 if [ $RUN_IN_LOOP -ne 0 ] ; then | 64 if [ $RUN_IN_LOOP -ne 0 ] ; then |
65 SCRIPT_PRERUN="bash -c \\\"while true ; do" | 65 SCRIPT_PRERUN="bash -c \\\"while sleep 0.5 ; do" |
66 SCRIPT_POSTRUN=" ; done \\\" " | 66 SCRIPT_POSTRUN=" ; done \\\" " |
67 fi | 67 fi |
68 | 68 |
69 ssh $BBB_ADDRESS "echo \"#!/bin/sh | 69 ssh $BBB_ADDRESS "echo \"#!/bin/sh |
70 # | 70 # |