From b386bcc610d3d85befb35db19ccf4013947f2f2c Mon Sep 17 00:00:00 2001 From: cimryan Date: Fri, 12 Oct 2018 15:45:45 -0700 Subject: [PATCH] The setup script updates archiveloop with the name of the archive server --- windows_archive/setup-teslausb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/windows_archive/setup-teslausb b/windows_archive/setup-teslausb index 3093a33..ec14c70 100644 --- a/windows_archive/setup-teslausb +++ b/windows_archive/setup-teslausb @@ -38,6 +38,8 @@ then exit 1 fi +pushd ~ + cp /boot/cmdline.txt ~ cat ~/cmdline.txt | sed 's/[[:space:]]\+modules-load=[^ [:space:]]\+//' | sed 's/rootwait/rootwait modules-load=dwc2/' > /boot/cmdline.txt rm ~/cmdline.txt @@ -56,11 +58,14 @@ echo "password=$sharepassword" >> /root/.teslaCamArchiveCredentials mkdir /root/bin +wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/archiveloop +sed s/ARCHIVE_HOST_NAME=archiveserver/ARCHIVE_HOST_NAME=$archiveserver/ ~/archiveloop > /root/bin/archiveloop +rm ~/archiveloop +chmod +x /root/bin/archiveloop + pushd /root/bin wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/archive-teslacam-clips chmod +x archive-teslacam-clips -wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/archiveloop -chmod +x archiveloop popd echo "#!/bin/bash -eu" > ~/rc.local @@ -90,4 +95,4 @@ cp /etc/hosts ~ sed s/raspberrypi/teslausb/g ~/hosts > /etc/hosts cp /etc/hostname ~ -sed s/raspberrypi/teslausb/g ~/hostname > /etc/hostname \ No newline at end of file +sed s/raspberrypi/teslausb/g ~/hostname > /etc/hostname