Make code deploy more cleanly
This makes it so that the code will actually start on boot and puts the
log_fbs_shmem binary into the robot_code folder.
Change-Id: I46900154e73c03514648cb23a8befe2cf478d967
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index b81bf62..cbbc09c 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -3,7 +3,9 @@
# NI already has a core pattern, so we probably shouldn't change it.
#echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern
+ROBOT_CODE=/home/admin/robot_code
+cd $ROBOT_CODE
while true; do
- export PATH=$PATH:/home/admin/robot_code
- starter_exe /home/admin/robot_code/start_list.txt
+ export PATH=$PATH:$ROBOT_CODE
+ starter_exe $ROBOT_CODE/start_list.txt
done