tried to make sensor_receiver restart cleanly
diff --git a/aos/config/configure-prime.txt b/aos/config/configure-prime.txt
index 87b2818..1adaccd 100644
--- a/aos/config/configure-prime.txt
+++ b/aos/config/configure-prime.txt
@@ -67,10 +67,7 @@
11. Set the correct date.
`date` to check if date is correct.
`date -s <date string>` to set it if it isn't.
-12. Make it export UART1 on boot.
- Add the following to /boot/uboot/uenv.txt:
- "optargs=capemgr.enable_partno=BB-UART1"
-13. Fix the locale setup for SSHing in.
+12. Fix the locale setup for SSHing in.
`dpkg-reconfigure locales`, leave it with "en_US.UTF-8" only being
enabled, and then select "None" instead of that for the default in
the second screen.
diff --git a/aos/config/starter b/aos/config/starter
index f7a9c18..1fc05a0 100755
--- a/aos/config/starter
+++ b/aos/config/starter
@@ -69,6 +69,7 @@
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
+ killall starter_loop.sh
start-stop-daemon --stop --quiet --retry=INT/10/KILL/5 --pidfile $PIDFILE
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
@@ -80,7 +81,7 @@
# sleep for some time.
#start-stop-daemon --stop --quiet --oknodo --retry=INT/10/KILL/5
#[ "$?" = 2 ] && return 2
- sleep 10
+ sleep 5
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
return "$RETVAL"
diff --git a/aos/linux_code/starter/starter.sh b/aos/linux_code/starter/starter.sh
index 62338af..9d7cc13 100755
--- a/aos/linux_code/starter/starter.sh
+++ b/aos/linux_code/starter/starter.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+echo $$ > /tmp/starter.pid
+
echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern
#echo $$ > /var/run/`basename $0`.pid IT FORKS AFTER THIS!!!!