More descriptive

Also typos in LOGFILE var.
This commit is contained in:
Richard Goodwin
2018-10-21 13:10:50 -05:00
parent 0aa03a1ca8
commit a8ac613fd0
4 changed files with 6 additions and 4 deletions

View File

@@ -272,9 +272,11 @@ 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."
/etc/stage_flash 5 /etc/stage_flash 5
mark_setup_success mark_setup_success
echo 1 | sudo tee /sys/class/leds/led0/brightness
echo 0 | sudo tee /sys/class/leds/led0/brightness
make_root_fs_readonly make_root_fs_readonly
setup_log "Filesystems made read-only. Rebooting." setup_log "Filesystems made read-only. Rebooting."

View File

@@ -5,7 +5,7 @@ CAM_MOUNT=/mnt/cam
ARCHIVE_MOUNT=/mnt/archive ARCHIVE_MOUNT=/mnt/archive
function log () { function log () {
echo "$( date ) : $1" >> "$LOG_FILE" echo "$( date ) : $1" >> "$LOGFILE"
} }
function retry () { function retry () {

View File

@@ -5,7 +5,7 @@ ARCHIVE_HOST_NAME=archiveserver
LOGFILE=/tmp/archiveloop.log LOGFILE=/tmp/archiveloop.log
function log () { function log () {
echo "$( date ) : $1" >> "$LOG_FILE" echo "$( date ) : $1" >> "$LOGFILE"
} }
function archive_is_reachable () { function archive_is_reachable () {

View File

@@ -3,7 +3,7 @@
LOGFILE=/tmp/archiveloop.log LOGFILE=/tmp/archiveloop.log
function log () { function log () {
echo "$( date ) : $1" >> "$LOG_FILE" echo "$( date ) : $1" >> "$LOGFILE"
} }
source /root/.teslaCamPushoverCredentials source /root/.teslaCamPushoverCredentials