mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
All path errors all day.
This commit is contained in:
@@ -133,46 +133,46 @@ function download_scripts () {
|
|||||||
mkdir "${BOOT_DIR}/teslausb_setup_scripts"
|
mkdir "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
# stop_message "ERROR: Failed to make teslausb_setup_scripts and download setup scripts. Ensure you have internet access and run this script again."
|
# stop_message "ERROR: Failed to make teslausb_setup_scripts and download setup scripts. Ensure you have internet access and run this script again."
|
||||||
else
|
else
|
||||||
pushd "${BOOT_DIR}/teslausb_script_scripts"
|
pushd "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/headless-scripts/setup-teslausb-headless -O setup-teslausb-headless
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/headless-scripts/setup-teslausb-headless -O setup-teslausb-headless
|
||||||
verify_setup_file_exists "setup-teslausb-headless" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "setup-teslausb-headless" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x setup-teslausb-headless
|
chmod +x setup-teslausb-headless
|
||||||
good_message "Downloaded main setup script."
|
good_message "Downloaded main setup script."
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archiveloop -O archiveloop
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archiveloop -O archiveloop
|
||||||
# sed s/ARCHIVE_HOST_NAME=archiveserver/ARCHIVE_HOST_NAME=$archiveserver/ ~/archiveloop > /root/bin/archiveloop
|
# sed s/ARCHIVE_HOST_NAME=archiveserver/ARCHIVE_HOST_NAME=$archiveserver/ ~/archiveloop > /root/bin/archiveloop
|
||||||
sed -i'.bak' -e "s/ARCHIVE_HOST_NAME=archiveserver/ARCHIVE_HOST_NAME=$archiveserver/" archiveloop
|
sed -i'.bak' -e "s/ARCHIVE_HOST_NAME=archiveserver/ARCHIVE_HOST_NAME=$archiveserver/" archiveloop
|
||||||
verify_setup_file_exists "archiveloop" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "archiveloop" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x archiveloop
|
chmod +x archiveloop
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archive-teslacam-clips -O archive-teslacam-clips
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/archive-teslacam-clips -O archive-teslacam-clips
|
||||||
verify_setup_file_exists "archive-teslacam-clips" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "archive-teslacam-clips" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x archive-teslacam-clips
|
chmod +x archive-teslacam-clips
|
||||||
good_message "Configured the archive scripts."
|
good_message "Configured the archive scripts."
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/remountfs_rw -O remountfs_rw
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/remountfs_rw -O remountfs_rw
|
||||||
verify_setup_file_exists "remountfs_rw" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "remountfs_rw" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x remountfs_rw
|
chmod +x remountfs_rw
|
||||||
good_message "Downloaded script to remount filesystems read/write if needed (/root/bin/remountfs_rw)."
|
good_message "Downloaded script to remount filesystems read/write if needed (/root/bin/remountfs_rw)."
|
||||||
|
|
||||||
if [ ${user_enabled_pushover} = "true" ]
|
if [ ${user_enabled_pushover} = "true" ]
|
||||||
then
|
then
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/send-pushover
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/send-pushover
|
||||||
verify_setup_file_exists "remountfs_rw" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "remountfs_rw" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x send-pushover
|
chmod +x send-pushover
|
||||||
good_message "Downloaded Pushover notification script."
|
good_message "Downloaded Pushover notification script."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
good_message "Downloading ancillary setup scripts."
|
good_message "Downloading ancillary setup scripts."
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/create-backingfiles-partition.sh -O create-backingfiles-partition.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/create-backingfiles-partition.sh -O create-backingfiles-partition.sh
|
||||||
verify_setup_file_exists "create-backingfiles-partition.sh" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "create-backingfiles-partition.sh" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x create-backingfiles-partition.sh
|
chmod +x create-backingfiles-partition.sh
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/create-backingfiles.sh -O create-backingfiles.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/create-backingfiles.sh -O create-backingfiles.sh
|
||||||
verify_setup_file_exists "create-backingfiles.sh" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "create-backingfiles.sh" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x create-backingfiles.sh
|
chmod +x create-backingfiles.sh
|
||||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/make-root-fs-readonly.sh -O make-root-fs-readonly.sh
|
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/make-root-fs-readonly.sh -O make-root-fs-readonly.sh
|
||||||
verify_setup_file_exists "make-root-fs-readonly.sh" "${BOOT_DIR}/teslausb_script_scripts"
|
verify_setup_file_exists "make-root-fs-readonly.sh" "${BOOT_DIR}/teslausb_setup_scripts"
|
||||||
chmod +x make-root-fs-readonly.sh
|
chmod +x make-root-fs-readonly.sh
|
||||||
popd
|
popd
|
||||||
good_message "All scripts downloaded and configured."
|
good_message "All scripts downloaded and configured."
|
||||||
@@ -239,7 +239,7 @@ network={
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
good_message "Downloading setup scripts. They will be downloaded to ${BOOT_DIR}/teslausb_setup_scripts,"
|
good_message "Downloading setup scripts. They will be downloaded to ${BOOT_DIR}/teslausb_setup_scripts,"
|
||||||
good_message "and moved to /root/teslausb_script_scripts during first boot and install."
|
good_message "and moved to /root/teslausb_setup_scripts during first boot and install."
|
||||||
|
|
||||||
download_scripts
|
download_scripts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user