Quotes in updater script, Readme updates, remount script.

This commit is contained in:
Richard Goodwin
2018-10-18 07:32:08 -05:00
parent 9aa5d0114d
commit e917829a9f
7 changed files with 31 additions and 5 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.sh $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