From cb0586fb6b9762663e6c2f490d7c677377cb97b0 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sat, 4 Jun 2022 21:29:23 +0200 Subject: [PATCH] added several new global variables: update_conf, ... --- read_config | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/read_config b/read_config index d7e6af7..87a1dac 100755 --- a/read_config +++ b/read_config @@ -58,14 +58,28 @@ if [ ${read_config_sourced:-1} = "1" ]; then # include only once readonly customer_location_dir="$__customer_base_dir" log_info "$func:${LINENO}: customer-location-dir is $customer_location_dir" + + readonly update_conf="${customer_location_dir}/update.conf" + log_info "$func:${LINENO}: update.conf at $update_conf" + + readonly current_conf="${customer_location_dir}/current.conf" + log_info "$func:${LINENO}: current.conf at $current_conf" readonly customer_base_dir="${__customer_base_dir}/${zone_group}/${zone}" - log_info "$func:${LINENO}: customer-base-dir is $customer_base_dir" - readonly opkg_cmds_file="${customer_base_dir}/etc/psa_update/opkg_commands" + readonly emp_conf="${customer_base_dir}/etc/psa_config/emp.conf" + log_info "$func:${LINENO}: emp.conf at $emp_conf" - log_info "$func:${LINENO}: opkg_cmds_file is $opkg_cmds_file" + readonly device_conf="${customer_base_dir}/etc/psa_config/device.conf" + log_info "$func:${LINENO}: device.conf at $device_conf" + + readonly printer_conf="${customer_base_dir}/etc/psa_config/printer.conf" + log_info "$func:${LINENO}: device.conf at $printer_conf" + + readonly opkg_cmds_file="${customer_base_dir}/etc/psa_update/opkg_commands" + log_info "$func:${LINENO}: opkg_cmds_file at $opkg_cmds_file" + return 0 } # read_config UpdateController.conf