changeset 509:3bb63b848960 prerelease

set_startup defaults to loop mode
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 22 Jun 2016 03:28:07 +0100
parents a85851bb2e10
children 85ba865d3845
files scripts/set_startup.sh
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/set_startup.sh	Wed Jun 22 03:22:36 2016 +0100
+++ b/scripts/set_startup.sh	Wed Jun 22 03:28:07 2016 +0100
@@ -8,14 +8,14 @@
 . $SCRIPTDIR.bela_common || { echo "You must be in Bela/scripts to run these scripts" | exit 1; }  
 
 ENABLE_STARTUP=1
-RUN_IN_LOOP=0
+RUN_IN_LOOP=1
 
 # This path is hard-coded in the Bela image at present.
 
 usage()
 {
     THIS_SCRIPT=`basename "$0"`
-    echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [-c command-line-args] [-n] [-l]"
+    echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [-c command-line-args] [-n] [-s]"
 
     echo "
     This script enables (by default) or disables running the Bela
@@ -24,13 +24,13 @@
     set on startup, which is otherwise $BBB_DEFAULT_PROJECT_NAME. The -c option 
     passes command-line arguments to the Bela program; enclose the argument 
     string in quotes.
-    The -l option runs the Bela program in a loop, restarting
-    automatically in the event of a crash."
+    The -s option runs the Bela program in single-shot mode.
+    By default, instead, the program is restarted  automatically in the event of a crash."
 }
 
 OPTIND=1
 
-while getopts "b:c:nlh" opt; do
+while getopts "b:c:nhs" opt; do
     case $opt in
         b)            BBB_PROJECT_NAME=$OPTARG
                       ;;
@@ -38,7 +38,7 @@
                       ;;
         n)            ENABLE_STARTUP=0
                       ;;
-        l)            RUN_IN_LOOP=1
+        s)            RUN_IN_LOOP=0
                       ;;
         h|\?)         usage
                       exit 1