add handling for ini-files in /etc/atb

This commit is contained in:
Gerhard Hoffmann 2022-06-05 15:29:37 +02:00
parent 32fab5c34b
commit 39dea2f43f

View File

@ -180,7 +180,8 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
log_fatal "$func:${LINENO}: $psa_update_dir does not exist"
fi
readonly PSA_ATB_SYS_DIR="${CUSTOMER_BASE_DIR}/etc/atb"
readonly ATB_SYS_DIR="/etc/atb"
readonly PSA_ATB_SYS_DIR="${CUSTOMER_BASE_DIR}${ATB_SYS_DIR}"
if [ -d "$PSA_ATB_SYS_DIR" ]; then
log_debug "$func:${LINENO}: PSA_ATB_SYS_DIR=$PSA_ATB_SYS_DIR"
else
@ -318,6 +319,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
log_fatal "$func:${LINENO}: $ATB_SYSCTRL_INI_FULL does not exist"
fi
readonly ATB_ATBQT_INI_FULL="${PSA_ATB_SYS_DIR}/$ATBQT_INI"
if [ -f "$ATB_ATBQT_INI_FULL" ]; then
log_debug "$func:${LINENO}: ATBQT.ini="
log_debug "$func:${LINENO}: $ATB_ATBQT_INI_FULL"
else
log_fatal "$func:${LINENO}: $ATB_ATBQT_INI_FULL does not exist"
fi
readonly DC2C_SERIAL_JSON="${psa_config_dir}/DC2C_serial.json"
if [ -f "$DC2C_SERIAL_JSON" ]; then
log_debug "$func:${LINENO}: DC2C_SERIAL_JSON="
@ -375,7 +384,11 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once
${ISMASMGR_ISMASMGR_INI_FULL##*${CUSTOMER_ID}/} \
${SYSCONFIG_ISMASMGR_INI_FULL##*${CUSTOMER_ID}/} \
${SYSCONFIG_SYSCONFIG_INI_FULL##*${CUSTOMER_ID}/} \
${SYSCONFIG_SYSCTRL_INI_FULL##*${CUSTOMER_ID}/})
${SYSCONFIG_SYSCTRL_INI_FULL##*${CUSTOMER_ID}/} \
${ATB_ISMASMGR_INI_FULL##*${CUSTOMER_ID}/} \
${ATB_SYSCONFIG_INI_FULL##*${CUSTOMER_ID}/} \
${ATB_SYSCTRL_INI_FULL##*${CUSTOMER_ID}/} \
${ATB_ATBQT_INI_FULL##*${CUSTOMER_ID}/})
readonly KNOWN_FILES=(${KNOWN_CONF_FILES[@]} \
${KNOWN_INI_FILES[@]} \