From 664e47b1c05358cc7c074aed2d936b82a1ec7762 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Tue, 23 Oct 2018 07:47:23 -0400 Subject: [PATCH 1/3] Create the TeslaCam directory as part of the SD card setup --- windows_archive/setup-teslausb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/windows_archive/setup-teslausb b/windows_archive/setup-teslausb index 5910eab..b9da36e 100644 --- a/windows_archive/setup-teslausb +++ b/windows_archive/setup-teslausb @@ -103,6 +103,12 @@ function create_usb_drive_backing_files () { /tmp/create-backingfiles.sh "$campercent" "$BACKINGFILES_MOUNTPOINT" } +function create_teslacam_directory () { + mount /mnt/cam + mkdir /mnt/cam/TeslaCam + umount /mnt/cam +} + function configure_archive () { echo "Configuring the archive..." mkdir /mnt/archive @@ -216,6 +222,8 @@ echo "" >> /etc/fstab create_usb_drive_backing_files +create_teslacam_directory + configure_archive configure_rc_local From 7eaead43aef881286ca2c8848058861805841b3f Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Tue, 23 Oct 2018 09:13:25 -0400 Subject: [PATCH 2/3] Remove instructions about manually creating the TeslaCam directory --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c672958..e963075 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,6 @@ After reboot, the Pi hostname will become `teslausb`, so future `ssh` sessions w ### 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. -1. Create a directory named TeslaCam at the root of the drive labeled CAM. 1. Copy any music you'd like to the drive labeled MUSIC. 1. Eject the drives. 1. Unplug the Pi from the PC. From b71d7d77d6641df75c4e3babe6dc12cd8708161c Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Tue, 23 Oct 2018 09:39:18 -0400 Subject: [PATCH 3/3] More changes to the readme instructions. Connecting the Pi to a PC after setup-teslausb is run is only required when adding music to the Pi --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e963075..2771d94 100644 --- a/README.md +++ b/README.md @@ -106,12 +106,14 @@ Now that you have Wifi up and running, it's time to set up the USB storage and s ``` 1. Run this command: ``` - reboot + shutdown -h now ``` -After reboot, the Pi hostname will become `teslausb`, so future `ssh` sessions will be `ssh pi@teslausb.local`. +On the next boot, the Pi hostname will become `teslausb`, so future `ssh` sessions will be `ssh pi@teslausb.local`. -### Get the Pi set up for your Tesla. +Your Pi is now ready to be plugged into your Tesla. If you want to add music to the Pi, follow the instructions in the next section. + +### (Optional) Add music to the Pi 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. 1. Copy any music you'd like to the drive labeled MUSIC.