Fix odroid deploy to actually work
Checkin the startup scripts from champs
Change-Id: Ifffa713d1f371bbe9bdcc4eaabae852f6cecbee6
diff --git a/y2018/vision/deploy.sh b/y2018/vision/deploy.sh
index ba9d40d..d248f57 100755
--- a/y2018/vision/deploy.sh
+++ b/y2018/vision/deploy.sh
@@ -5,20 +5,13 @@
JETSON="root@$1"
# To build for the Jetson, use
-bazel build -c opt //y2018/vision:image_streamer \
- //aos/vision/tools:camera_primer --cpu=armhf-debian
-
-# Remove files before copying them.
-# Doing so avoids problems with trying to copy over a file in use.
-ssh "${JETSON}" rm -f image_streamer camera_primer exposure_2018.sh startup.sh
+bazel build -c opt //y2018/vision:image_streamer --cpu=armhf-debian
# Copy files to Jetson
-scp bazel-bin/y2018/vision/image_streamer "${JETSON}":.
-scp bazel-bin/aos/vision/tools/camera_primer "${JETSON}":.
-scp y2018/vision/exposure_2018.sh "${JETSON}":.
-scp y2018/vision/startup.sh "${JETSON}":.
+rsync -av --progress bazel-bin/y2018/vision/image_streamer y2018/vision/exposure_loop.sh "${JETSON}":.
+rsync -av --progress y2018/vision/exposure_loop.conf y2018/vision/vision.conf "${JETSON}":/etc/supervisor/conf.d/
ssh "${JETSON}" sync
# Can't restart with supervisorctl because the USB devices don't come up reliably...
-echo "You just restart the Jetson now" >&2
\ No newline at end of file
+echo "Restart the Jetson now" >&2