mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
The setup script updates archiveloop with the name of the archive server
This commit is contained in:
@@ -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
|
||||
sed s/raspberrypi/teslausb/g ~/hostname > /etc/hostname
|
||||
|
||||
Reference in New Issue
Block a user