From 39dea2f43f2fe6f61e7dedb363be2138478e68c7 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 5 Jun 2022 15:29:37 +0200 Subject: [PATCH] add handling for ini-files in /etc/atb --- read_config | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/read_config b/read_config index eee6d74..b5b0c3e 100755 --- a/read_config +++ b/read_config @@ -179,8 +179,9 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once else 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 @@ -317,6 +318,14 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once else 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 @@ -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[@]} \