SCU File Format Definitions - Geowissenschaften/EXCISS GitHub Wiki

Files in SCU home directory ${SCU_HOME}

${SCU_HOME}/etc

  • SCU_env

    SCU environment file with global variables

Contents

export SCU_ENV_VERSION_NUMBER=<version of SCU_env template>
export SCU_ENV_VERSION_DATE=<date of SCU_env template>

export SCU_HOME=<home directory of SCU>

export SCU_CYCLE_FILE=<file containing SCU cycle number>

export DEBUG_LEVEL_NONE=<debug level 'none'>
export DEBUG_LEVEL_ERROR=<debug level 'error'>
export DEBUG_LEVEL_WARNING=<debug level 'warning'>
export DEBUG_LEVEL_INFO=<debug level 'info'>
export DEBUG_LEVEL_DETAIL=<debug level 'detail'>

export DEBUG_LEVEL=<debug information sent to stderr>

Example

export SCU_ENV_VERSION_NUMBER="$(awk '$1~/^#/ && $2~/^\$VERSION_NUMBER$/ \
		{print $3}' ${MY_DIR_NAME}/${MY_FILE_NAME} 2>/dev/null)"
export SCU_ENV_VERSION_DATE="$(awk '$1~/^#/ && $2~/^\$VERSION_DATE$/ \
		{print $3}' ${MY_DIR_NAME}/${MY_FILE_NAME} 2>/dev/null)"

export SCU_HOME="/opt/MLU/SCU" # home directory of SCU

export SCU_CYCLE_FILE="${SCU_HOME}/var/SCU_cycle_number.cf"

export DEBUG_LEVEL_NONE=0    # debug level 0=none
export DEBUG_LEVEL_ERROR=1   # debug level 1=error
export DEBUG_LEVEL_WARNING=2 # debug level 2=warning
export DEBUG_LEVEL_INFO=3    # debug level 3=info
export DEBUG_LEVEL_DETAIL=4  # debug level 4=detail

export DEBUG_LEVEL=${DEBUG_LEVEL_WARNING}  # debug information sent to stderr
                                           # {NONE|DETAIL|INFO|WARNING|ERROR}
                                           # (default: DEBUG_LEVEL_WARNING)

Warning: Do not use 'exit' in SCU_env as it is sourced into other scripts!


${SCU_HOME}/log

  • SCU_cycle_increment.log

    Logs updates to the SCU cycle number - one line per new cycle.

Contents

<Cycle> <CCYY-mm-dd>_<HH:MM:SS>

Example

99 2017-12-31_23:59:59

SCU_cycle_increment.log.OLD is 1 previous version of this file.


${SCU_HOME}/update

  • <CCYYMMDD_hhmmss>_date_time_update.cf

    New time to set RTC to

Contents

<CCYY-mm-dd>T<HH:MM:SS>

Example

2017-12-31T23:59:59

  • <CCYYMMDD_hhmmss>_update_reboot.flag

    Indicates request to reboot after applying updates

${SCU_HOME}/var

  • SCU_identifier.cf

    Unique identifier of curr ently active Raspbian MicroSD card

Contents


Example


SCU_identifier.cf.OLD is 1 previous version of this file.


  • SCU_cycle_number.cf

    Keeps track of unique SCU cycle number to identify current SCU execution.

Contents

SCU_CYCLE_NUMBER=<Cycle>
SCU_CYCLE_DATE=<CCYY-mm-dd>_<HH:MM:SS>

Example

SCU_CYCLE_NUMBER=99
SCU_CYCLE_DATE=2017-12-31_23:59:59

SCU_cycle_number.cf.OLD is 1 previous version of this file.


  • USB_memory.cf

    Stores details about USB flash memory devices and file systems.

Contents


Example


USB_memory.cf.OLD is 1 previous version of this file.

⚠️ **GitHub.com Fallback** ⚠️