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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pushd ~
|
||||||
|
|
||||||
cp /boot/cmdline.txt ~
|
cp /boot/cmdline.txt ~
|
||||||
cat ~/cmdline.txt | sed 's/[[:space:]]\+modules-load=[^ [:space:]]\+//' | sed 's/rootwait/rootwait modules-load=dwc2/' > /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
|
rm ~/cmdline.txt
|
||||||
@@ -56,11 +58,14 @@ echo "password=$sharepassword" >> /root/.teslaCamArchiveCredentials
|
|||||||
|
|
||||||
mkdir /root/bin
|
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
|
pushd /root/bin
|
||||||
wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/archive-teslacam-clips
|
wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/archive-teslacam-clips
|
||||||
chmod +x archive-teslacam-clips
|
chmod +x archive-teslacam-clips
|
||||||
wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/archiveloop
|
|
||||||
chmod +x archiveloop
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo "#!/bin/bash -eu" > ~/rc.local
|
echo "#!/bin/bash -eu" > ~/rc.local
|
||||||
|
|||||||
Reference in New Issue
Block a user