diff scripts/set_startup.sh @ 377:a430a16d2c02 prerelease

Updated scripts so that the Bela folder on the bbb is ~/Bela. Note: BeagleRT_startup.sh is still the same (because the reference to it needs to be changed in /etc/init.d/ ....
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 11 Jun 2016 01:54:43 +0100
parents 6e428d6b57ef
children d56e638c37c6
line wrap: on
line diff
--- a/scripts/set_startup.sh	Fri Jun 10 00:56:49 2016 +0100
+++ b/scripts/set_startup.sh	Sat Jun 11 01:54:43 2016 +0100
@@ -1,11 +1,11 @@
 #!/bin/bash
 #
-# This script enables or disables running BeagleRT when the board starts
+# This script enables or disables running Bela when the board starts
 # up.
 
 [ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2"
-[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/BeagleRT/"
-[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="BeagleRT"
+[ -z "$BBB_BELA_HOME" ] && BBB_BELA_HOME="~/Bela/"
+[ -z "$BBB_SCREEN_NAME" ] && BBB_SCREEN_NAME="Bela"
 [ -z "$RUN_PROJECT" ] && RUN_PROJECT=1
 [ -z "$COMMAND_ARGS" ] && COMMAND_ARGS=
 [ -z "$RUN_IN_FOREGROUND" ] && RUN_IN_FOREGROUND=1
@@ -16,7 +16,7 @@
 ENABLE_STARTUP=1
 RUN_IN_LOOP=0
 
-# This path is hard-coded in the BeagleRT image at present.
+# This path is hard-coded in the Bela image at present.
 
 function usage
 {
@@ -24,13 +24,13 @@
     echo "Usage: $THIS_SCRIPT [-b path-on-beaglebone] [-c command-line-args] [-n] [-l]"
 
     echo "
-    This script enables (by default) or disables running the BeagleRT
+    This script enables (by default) or disables running the Bela
     project at startup. The -n option disables auto-startup, otherwise
     auto-startup is enabled. The -b option changes the name of the project to
     set on startup, which is otherwise $BBB_DEFAULT_PROJECT_NAME. The -c option 
-    passes command-line arguments to the BeagleRT program; enclose the argument 
+    passes command-line arguments to the Bela program; enclose the argument 
     string in quotes.
-    The -l option runs the BeagleRT program in a loop, restarting
+    The -l option runs the Bela program in a loop, restarting
     automatically in the event of a crash."
 }
 
@@ -56,13 +56,13 @@
 MAKE_COMMAND="make -C $BBB_BELA_HOME PROJECT=$BBB_PROJECT_NAME CL=\"$OPTARG\""
 if [ $ENABLE_STARTUP -eq 0 ]
 then
-    echo "Disabling BeagleRT at startup..."
+    echo "Disabling Bela at startup..."
     ssh $BBB_ADDRESS "$MAKE_COMMAND nostartup"
 elif [ $RUN_IN_LOOP -eq 1 ]
 then    
-    echo "Enabling BeagleRT at startup..."
+    echo "Enabling Bela at startup..."
     ssh $BBB_ADDRESS "$MAKE_COMMAND startuploop" 
 else 
-    echo "Enabling BeagleRT at startup..."
+    echo "Enabling Bela at startup..."
     ssh $BBB_ADDRESS "$MAKE_COMMAND startup" 
 fi