blob: f5b14a50a821a67ac8f4a3724953531e312937b1 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#!/bin/bash
2
Brian Silverman80353cb2013-03-19 18:27:53 -07003
Austin Schuhab8c0c52020-02-22 13:42:37 -08004if [[ "$(hostname)" == "roboRIO"* ]]; then
5 ROBOT_CODE="/home/admin/robot_code"
6
7 ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
8 ln -s /var/local/natinst/log/FRC_UserProgram.log "${ROBOT_CODE}/FRC_UserProgram.log"
9else
10 ROBOT_CODE="${HOME}/robot_code"
11fi
12
Austin Schuh540089c2019-12-29 20:36:16 -080013cd "${ROBOT_CODE}"
14export PATH="${PATH}:${ROBOT_CODE}"
Brian Silverman17bb36d2015-03-29 16:50:06 -040015while true; do
Austin Schuh540089c2019-12-29 20:36:16 -080016 starter_exe $ROBOT_CODE/start_list.txt 2>&1
Brian Silverman17bb36d2015-03-29 16:50:06 -040017done