blob: e140351dccf7e7e1e8e8554a5b6a02403d9e6627 [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"
James Kuszmaul2d8fa2a2020-03-01 13:51:50 -08009elif [[ "$(hostname)" == "pi-"* ]]; then
10 ROBOT_CODE="/home/pi/robot_code"
11
Austin Schuhab8c0c52020-02-22 13:42:37 -080012else
13 ROBOT_CODE="${HOME}/robot_code"
14fi
15
Austin Schuh540089c2019-12-29 20:36:16 -080016cd "${ROBOT_CODE}"
17export PATH="${PATH}:${ROBOT_CODE}"
Brian Silverman17bb36d2015-03-29 16:50:06 -040018while true; do
Austin Schuh540089c2019-12-29 20:36:16 -080019 starter_exe $ROBOT_CODE/start_list.txt 2>&1
Brian Silverman17bb36d2015-03-29 16:50:06 -040020done