mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Check for teslacam folder
And other tweaks.
This commit is contained in:
@@ -28,6 +28,7 @@ WORK IN PROGRESS BUT MOSTLY RIGHT
|
|||||||
* Marker files will be created in `boot` like `TESLA_USB_SETUP_STARTED` and `TESLA_USB_SETUP_FINISHED` to track progress. May use a progress system so the script can pick back up if needed. (This is probably useful for the general/old way of setup too.)
|
* Marker files will be created in `boot` like `TESLA_USB_SETUP_STARTED` and `TESLA_USB_SETUP_FINISHED` to track progress. May use a progress system so the script can pick back up if needed. (This is probably useful for the general/old way of setup too.)
|
||||||
* The Pi LED will flash patterns as it gets to each stage (labeled in the setup-teslausb-headless script).
|
* The Pi LED will flash patterns as it gets to each stage (labeled in the setup-teslausb-headless script).
|
||||||
* 10 flashes means setup failed!
|
* 10 flashes means setup failed!
|
||||||
|
* After the final stage and reboot the LED will go back to normal
|
||||||
|
|
||||||
|
|
||||||
#### Modifications to pi-gen builder from master
|
#### Modifications to pi-gen builder from master
|
||||||
|
|||||||
@@ -272,13 +272,12 @@ configure_hostname
|
|||||||
# SETUP STAGE 5 and reboot
|
# SETUP STAGE 5 and reboot
|
||||||
# If you see 5 flashes we are probably good!
|
# If you see 5 flashes we are probably good!
|
||||||
|
|
||||||
setup_log "SETUP STAGE 5: Marking successful and remounting filesystem readonly."
|
setup_log "SETUP STAGE 5: Marking successful and making filesystem readonly."
|
||||||
/etc/stage_flash 5
|
/etc/stage_flash 5
|
||||||
mark_setup_success
|
mark_setup_success
|
||||||
|
|
||||||
echo 0 | sudo tee /sys/class/leds/led0/brightness
|
|
||||||
make_root_fs_readonly
|
make_root_fs_readonly
|
||||||
|
# echo 0 | sudo tee /sys/class/leds/led0/brightness
|
||||||
setup_log "Filesystems made read-only. Rebooting."
|
setup_log "Filesystems made read-only. Rebooting."
|
||||||
|
|
||||||
reboot
|
reboot
|
||||||
|
|||||||
@@ -41,6 +41,13 @@ function mount_mountpoint () {
|
|||||||
if [ "$mounted" = true ]
|
if [ "$mounted" = true ]
|
||||||
then
|
then
|
||||||
log "Mounted $mount_point."
|
log "Mounted $mount_point."
|
||||||
|
if [ -d "/mnt/cam/TeslaCam" ]
|
||||||
|
then
|
||||||
|
log "TeslaCam folder exists"
|
||||||
|
true
|
||||||
|
return
|
||||||
|
else
|
||||||
|
mkdir /mnt/cam/TeslaCam
|
||||||
true
|
true
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user