Merge pull request #36 from cimryan/rtgoodwin/updater-script

Rtgoodwin/updater script
This commit is contained in:
cimryan
2018-10-18 18:39:53 -07:00
committed by GitHub
7 changed files with 179 additions and 22 deletions

View File

@@ -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

View 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."

View File

@@ -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