diff --git a/headless-scripts/setup-teslausb-headless b/headless-scripts/setup-teslausb-headless index f9396d2..8c8112f 100644 --- a/headless-scripts/setup-teslausb-headless +++ b/headless-scripts/setup-teslausb-headless @@ -3,7 +3,7 @@ REPO=rtgoodwin BRANCH="headless-patch" user_enabled_pushover=false -LOGFILE=/boot/teslausb-headless-setup.log +SETUP_LOGFILE=/boot/teslausb-headless-setup.log setup_complete=false # if ! [ $(id -u) = 0 ] @@ -12,7 +12,7 @@ setup_complete=false # exit 1 # fi -function setup_log () { +function setup_progress () { echo "$( date ) : $1" >> "$LOGFILE" } diff --git a/setup/pi/setup-teslausb b/setup/pi/setup-teslausb index e51addb..8f09d69 100644 --- a/setup/pi/setup-teslausb +++ b/setup/pi/setup-teslausb @@ -32,7 +32,7 @@ function headless_setup_populate_variables () { function headless_setup_mark_setup_failed () { if [ $HEADLESS_SETUP = "true" ] then - setup_log "ERROR: Setup Failed." + setup_progress "ERROR: Setup Failed." touch /boot/TESLAUSB_SETUP_FAILED fi } @@ -48,7 +48,7 @@ function headless_setup_mark_setup_success () { rm /boot/TESLAUSB_SETUP_STARTED touch /boot/TESLAUSB_SETUP_FINISHED - setup_log "Main setup completed. Remounting file systems read only." + setup_progress "Main setup completed. Remounting file systems read only." fi }