blob: 2c8494ea7f5404813088d38e396218f82014dca3 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#!/bin/bash
2
Austin Schuhab8c0c52020-02-22 13:42:37 -08003if [[ "$(hostname)" == "roboRIO"* ]]; then
Austin Schuhac1b7752021-10-12 22:05:09 -07004 /usr/local/natinst/etc/init.d/systemWebServer stop
5
Austin Schuhab8c0c52020-02-22 13:42:37 -08006 ROBOT_CODE="/home/admin/robot_code"
7
8 ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
9 ln -s /var/local/natinst/log/FRC_UserProgram.log "${ROBOT_CODE}/FRC_UserProgram.log"
James Kuszmaul2d8fa2a2020-03-01 13:51:50 -080010elif [[ "$(hostname)" == "pi-"* ]]; then
11 ROBOT_CODE="/home/pi/robot_code"
12
Austin Schuhab8c0c52020-02-22 13:42:37 -080013else
14 ROBOT_CODE="${HOME}/robot_code"
15fi
16
Austin Schuh540089c2019-12-29 20:36:16 -080017cd "${ROBOT_CODE}"
18export PATH="${PATH}:${ROBOT_CODE}"
Brian Silverman17bb36d2015-03-29 16:50:06 -040019while true; do
Austin Schuh2c4ee252021-10-17 23:15:39 -070020 starterd 2>&1
Brian Silverman17bb36d2015-03-29 16:50:06 -040021done