mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Quotes in updater script, Readme updates, remount script.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 --'
|
||||
|
||||
@@ -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
|
||||
|
||||
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