blob: 72f69a41163cbf8ac64597e326ee7e083c263117 [file] [log] [blame]
#!/bin/bash
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"
elif [[ "$(hostname)" == "pi-"* ]]; then
ROBOT_CODE="/home/pi/robot_code"
else
ROBOT_CODE="${HOME}/robot_code"
fi
cd "${ROBOT_CODE}"
export PATH="${PATH}:${ROBOT_CODE}"
while true; do
starterd 2>&1
done