blob: 9d7cc13303b1fc37523a9bb8df7f9297ea04c8b7 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#!/bin/bash
2
Brian Silverman0b882522014-02-16 15:47:34 -08003echo $$ > /tmp/starter.pid
4
Brian Silverman80353cb2013-03-19 18:27:53 -07005echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern
6
brians343bc112013-02-10 01:53:46 +00007#echo $$ > /var/run/`basename $0`.pid IT FORKS AFTER THIS!!!!
Brian Silvermana4f9ef22013-03-30 14:31:16 -07008#insmod /home/driver/robot_code/bin/aos_module.ko
brians343bc112013-02-10 01:53:46 +00009#chrt -p 45 `pidof sshd`
10chrt -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 Silvermane364e382014-02-08 21:51:33 -080022chrt -o 0 bash -c 'while true; do /home/driver/robot_code/bin/netconsole /home/driver/tmp/robot_logs/netconsole-`date +%s`; done' &