get_cfg(){
    #
    # Usage:  get_cfg PARM [DEFAULT]
    #
    VALUE=`getltscfg $1`
    if [ "$#" -gt 1 -a -z "${VALUE}" ]; then
        echo $2
    else
        echo ${VALUE}
    fi
}

pr_warn(){
    if [ -w /proc/progress ]; then
        echo w >/proc/progress
    fi
}

pr_fail(){
    if [ -w /proc/progress ]; then
        echo f >/proc/progress
    fi
}

pr_set(){
    if [ -w /proc/progress ]; then
        echo $1 $2 >/proc/progress
        SLEEP=${SLEEP:-0}
        [ "${SLEEP}" -gt 0 ] && sleep ${SLEEP}
    fi
}

reg_info(){
    VAR=$1
    echo ${!VAR} >/tmp/info/${VAR}
}
