brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Brian Silverman | 80353cb | 2013-03-19 18:27:53 -0700 | [diff] [blame] | 3 | |
Austin Schuh | ab8c0c5 | 2020-02-22 13:42:37 -0800 | [diff] [blame] | 4 | if [[ "$(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" |
| 9 | else |
| 10 | ROBOT_CODE="${HOME}/robot_code" |
| 11 | fi |
| 12 | |
Austin Schuh | 540089c | 2019-12-29 20:36:16 -0800 | [diff] [blame] | 13 | cd "${ROBOT_CODE}" |
| 14 | export PATH="${PATH}:${ROBOT_CODE}" |
Brian Silverman | 17bb36d | 2015-03-29 16:50:06 -0400 | [diff] [blame] | 15 | while true; do |
Austin Schuh | 540089c | 2019-12-29 20:36:16 -0800 | [diff] [blame] | 16 | starter_exe $ROBOT_CODE/start_list.txt 2>&1 |
Brian Silverman | 17bb36d | 2015-03-29 16:50:06 -0400 | [diff] [blame] | 17 | done |