mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Merge pull request #35 from rtgoodwin/updater-script
Mac folder, config updater script, updated readmes.
This commit is contained in:
@@ -81,7 +81,7 @@ function move_clips_to_archive () {
|
||||
|
||||
done
|
||||
log "Moved $move_count file(s)."
|
||||
if [ -r "/root/.teslaCamPushoverCredentials" ]
|
||||
if [ -r "/root/.teslaCamPushoverCredentials" ] && [ $move_count > 0 ]
|
||||
then
|
||||
log "Sending Pushover message for copied files."
|
||||
/root/bin/send-pushover $move_count
|
||||
|
||||
9
windows_archive/remountfs_rw
Normal file
9
windows_archive/remountfs_rw
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Remounting / as read/write"
|
||||
mount / -o remount,rw
|
||||
echo "Remounting /boot as read/write"
|
||||
mount /boot -o remount,rw
|
||||
echo "Done. Make any changes needed, and reboot the Pi when ready."
|
||||
echo "Filesystems / and /boot will be mounted as read only after reboot."
|
||||
|
||||
@@ -133,8 +133,15 @@ function configure_archive_scripts () {
|
||||
chmod +x archive-teslacam-clips
|
||||
popd
|
||||
echo "Configured the archive scripts."
|
||||
|
||||
pushd /root
|
||||
wget https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/windows_archive/remountfs_rw
|
||||
chmod +x remountfs_rw
|
||||
popd
|
||||
echo "Downloaded script to remount filesystems read/write if needed (/root/remountfs_rw)."
|
||||
}
|
||||
|
||||
|
||||
function configure_pushover_scripts() {
|
||||
if [ ${user_enabled_pushover} = "true" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user