From 4b761d34e05a297121071325f62f25e244f3295d Mon Sep 17 00:00:00 2001 From: Richard Goodwin Date: Sat, 20 Oct 2018 19:11:41 -0500 Subject: [PATCH] Update headless-scripts/setup-teslausb-headless Added a reboot since resolv.conf and filesystem remount seem to need it. --- headless-scripts/setup-teslausb-headless | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/headless-scripts/setup-teslausb-headless b/headless-scripts/setup-teslausb-headless index 4cc855b..2a5fc3d 100644 --- a/headless-scripts/setup-teslausb-headless +++ b/headless-scripts/setup-teslausb-headless @@ -31,10 +31,10 @@ function mark_setup_success () { if [ -e /boot/TESLAUSB_SETUP_FAILED ] then rm /boot/TESLAUSB_SETUP_FAILED - rm /boot/TESLAUSB_SETUP_STARTED fi + rm /boot/TESLAUSB_SETUP_STARTED touch /boot/TESLAUSB_SETUP_FINISHED - setup_log "Setup completed. Remounting file systems read only (may cause a reboot)." + setup_log "Main setup completed. Remounting file systems read only." } function check_variable () { @@ -263,4 +263,7 @@ mark_setup_success make_root_fs_readonly -echo "All done." +setup_log "Filesystems made read-only. Rebooting." + +reboot +