diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 567b773..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/GetShellWitoutMonitorOnLinux.md b/GetShellWithoutMonitorOnLinux.md similarity index 100% rename from GetShellWitoutMonitorOnLinux.md rename to GetShellWithoutMonitorOnLinux.md diff --git a/README.md b/README.md index e64df37..40e9161 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ If you don't have a keyboard/HDMI setup to boot the Pi and edit/transfer files d * Follow [these instructions](GetShellWithoutMonitorOnWindows.md), then skip down to the section titled **Set up Set up Wifi on the Pi (manually)y**. #### macOS or Linux (Setup Wifi or USB Networking) -* Follow [these instructions](GetShellWitoutMonitorOnLinux.md), then proceed to the section **Set up the USB Storage Functionality**. +* Follow [these instructions](GetShellWithoutMonitorOnLinux.md), then proceed to the section **Set up the USB Storage Functionality**. ### Set up Wifi on the Pi (manually) @@ -168,6 +168,9 @@ Now that you have Wifi up and running, it's time to set up the USB Storage and s ``` reboot ``` + +After reboot, the Pi hostname will become `teslausb`, so future `ssh` sessions will be `ssh pi@teslausb.local`. + ### Get the Pi set up for your Tesla. If you set up the Pi with a keyboard and a monitor disconnect it and connect it to a PC. If you're using a cable be sure to use the port labeled "usb" on the circuitboard. 1. Wait for the Pi to show up on the PC as a USB drive. @@ -189,4 +192,6 @@ sudo -i mount / -o remount,rw mount /boot -o remount,rw ``` +A script has been provided as `/root/remountfs_rw` to run the mount commands for you more easily. + Then make whatever changes you need to. The next time the system boots the partitions will once again be read-only. diff --git a/mac_linux_archive/update-rpi-mac-linux.sh b/mac_linux_archive/update-rpi-mac-linux.sh index 7f0121d..5658def 100755 --- a/mac_linux_archive/update-rpi-mac-linux.sh +++ b/mac_linux_archive/update-rpi-mac-linux.sh @@ -15,7 +15,7 @@ #|| | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #|| # -# Script repurposed fromhttps://github.com/BigNate1234/rpi-USBSSH +# Script repurposed from https://github.com/BigNate1234/rpi-USBSSH # # This script will modify the cmdline.txt file on a freshly flashed Raspbian Stretch/Lite # It readies it for SSH, USB OTG, USB networking, and Wifi @@ -79,18 +79,23 @@ fi # Sets up wifi credentials so wifi will be # auto configured on first boot +if [ -r "wpa_supplicant.conf" ] +then + rm wpa_supplicant.conf +fi cat << EOF >> wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ - ssid=$SSID - psk=$WIFIPASS + ssid="$SSID" + psk="$WIFIPASS" key_mgmt=WPA-PSK } EOF + cd echo "" echo '-- Files updated and ready for Wifi and SSH over USB --' diff --git a/windows_archive/archive-teslacam-clips b/windows_archive/archive-teslacam-clips index 681392c..3d3fdf7 100644 --- a/windows_archive/archive-teslacam-clips +++ b/windows_archive/archive-teslacam-clips @@ -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 diff --git a/windows_archive/remountfs_rw b/windows_archive/remountfs_rw new file mode 100644 index 0000000..9638b11 --- /dev/null +++ b/windows_archive/remountfs_rw @@ -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." + diff --git a/windows_archive/setup-teslausb b/windows_archive/setup-teslausb index 045360c..3925e35 100644 --- a/windows_archive/setup-teslausb +++ b/windows_archive/setup-teslausb @@ -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