Add scripts to modify a root filesystem for the vision pi

Change-Id: I6bbcafa92d8233914ce47c11f35d2a9dd24a1489
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index c5af65a..f5b14a5 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -1,10 +1,15 @@
 #!/bin/bash
 
-# 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
 
-ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
-ROBOT_CODE="/home/admin/robot_code"
+if [[ "$(hostname)" == "roboRIO"* ]]; then
+  ROBOT_CODE="/home/admin/robot_code"
+
+  ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
+  ln -s /var/local/natinst/log/FRC_UserProgram.log "${ROBOT_CODE}/FRC_UserProgram.log"
+else
+  ROBOT_CODE="${HOME}/robot_code"
+fi
+
 cd "${ROBOT_CODE}"
 export PATH="${PATH}:${ROBOT_CODE}"
 while true; do