function fn_main()
{
local REF_INCLUDE_EXCLUDE_ROOT
local REF_INCLUDE_FILE
local REF_EXCLUDE_FILE
local REF_BUFFER_PATH
local REF_BAK_SERVER_IP
local REF_BAK_REMOTE_FOLDER
local REF_ECOO_NO_BSS
CONFIG_FILE=`echo "$1" | sed 's/\\\/\//g'`
PRINT_LOG "INFO" "Chech parameters..."
fn_get_config "${TMP_CONFIG_FILE}" REF_INCLUDE_EXCLUDE_ROOT REF_INCLUDE_FILE REF_EXCLUDE_FILE\
REF_BUFFER_PATH REF_BAK_SERVER_IP REF_BAK_REMOTE_FOLDER REF_ECOO_NO_BSS
echo ${REF_INCLUDE_EXCLUDE_ROOT}
echo ${REF_INCLUDE_FILE}
echo ${REF_EXCLUDE_FILE}
}
function fn_get_config()
{
local TMP_CONFIG_FILE=$1
INCLUDE_EXCLUDE_ROOT=`fn_get_value "${TMP_CONFIG_FILE}" "INCLUDE_EXCLUDE_ROOT"`
INCLUDE_FILE=`fn_get_value "${TMP_CONFIG_FILE}" "INCLUDE_FILE"`
EXCLUDE_FILE=`fn_get_value "${TMP_CONFIG_FILE}" "EXCLUDE_FILE"`
BUFFER_PATH=`fn_get_value "${TMP_CONFIG_FILE}" "BUFFER_PATH"`
BAK_SERVER_IP=`fn_get_value "${TMP_CONFIG_FILE}" "BAK_SERVER_IP"`
BAK_REMOTE_FOLDER=`fn_get_value "${TMP_CONFIG_FILE}" "BAK_REMOTE_FOLDER"`
BAK_ECOO_NO_BSS=`fn_get_value "${TMP_CONFIG_FILE}" "ECOO_NO_BSS"`
eval $2="${INCLUDE_EXCLUDE_ROOT}"
eval $3="${INCLUDE_FILE}"
eval $4="${EXCLUDE_FILE}"
eval $5="${BUFFER_PATH}"
eval $6="${BAK_SERVER_IP}"
eval $7="${BAK_REMOTE_FOLDER}"
eval $8="${BAK_ECOO_NO_BSS}"
return 0;
}
阅读(759) | 评论(0) | 转发(0) |