brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Brian Silverman | 0b88252 | 2014-02-16 15:47:34 -0800 | [diff] [blame] | 3 | echo $$ > /tmp/starter.pid |
| 4 | |
Brian Silverman | 80353cb | 2013-03-19 18:27:53 -0700 | [diff] [blame] | 5 | echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern |
| 6 | |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 7 | #echo $$ > /var/run/`basename $0`.pid IT FORKS AFTER THIS!!!! |
Brian Silverman | a4f9ef2 | 2013-03-30 14:31:16 -0700 | [diff] [blame] | 8 | #insmod /home/driver/robot_code/bin/aos_module.ko |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 9 | #chrt -p 45 `pidof sshd` |
| 10 | chrt -o 0 bash -c "export PATH=$PATH:/home/driver/robot_code/bin; starter_loop.sh $*" & |
| 11 | #chrt -o 0 bash -c "while true; do cd /home/driver/mjpg-streamer2; ./server.sh; sleep 5; done" & |
| 12 | |
| 13 | # Log everything from the serial port... |
| 14 | #SERIAL_LOG_FILE=$(date "/home/driver/tmp/robot_logs/serial_log.%F_%H-%M-%S") |
| 15 | #chrt -o 0 bash -c "( stty -echo -echoe -echok 9600; cat > ${SERIAL_LOG_FILE} ) < /dev/ttyUSB0" & |
| 16 | |
| 17 | # Wireshark _everything_ we can see... |
| 18 | #DUMPCAP_LOG_FILE=$(date "/home/driver/tmp/robot_logs/dumpcap.%F_%H-%M-%S") |
| 19 | #DUMPCAP_STDOUT_FILE=$(date "/home/driver/tmp/robot_logs/stdout_dumpcap.%F_%H-%M-%S") |
| 20 | #chrt -o 0 bash -c "dumpcap -i eth0 -w ${DUMPCAP_LOG_FILE} -f 'not port 8080 and not net 10.9.71.13' > ${DUMPCAP_STDOUT_FILE}" & |
| 21 | |
Brian Silverman | 71faed3 | 2014-02-27 19:09:12 -0800 | [diff] [blame] | 22 | chrt -o 0 bash -c 'while true; do /home/driver/robot_code/bin/netconsole /home/driver/tmp/robot_logs/netconsole-`date +%s`; sleep 1; done' & |