mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Update headless-scripts/setup-teslausb-headless
Added a reboot since resolv.conf and filesystem remount seem to need it.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user